it is in fact extremely easy to do in CF8. here's a working
proof:
[warning: a dir "thumbnails" will be created if it does not
exist OR
DELETED AND RE-CREATED IF IT DOES in the executed template's
folder. the
it is the cfpdf's doings, not mine...]
<!--- --->
getting url... <cfflush>
<cfhttp url="
http://www.sabai-dee.com"
resolveurl="yes" result="myres">
... got it!<br>
creating in-memory pdf... <cfflush>
<cfdocument format="pdf" name="mypdf">
<cfoutput>#myres.filecontent#</cfoutput>
</cfdocument>
...pdf created!<br>
generating thumbnail... <cfflush>
<cfpdf action="thumbnail" source="mypdf"
overwrite="yes">
...done!<br><br>
here it is:<br><br>
<img
src="thumbnails/thumbnail_page_1.jpg"><br><br>
<a href="
http://www.sabai-dee.com"
target="sdc">compare to original</a>
<!--- --->
there are numerous other settings one can employ in all the
above-used
cf tags to control size, quality and other aspects of the
generated
jpeg. and if you throw <cfimage> into the mix, the
capabilities are
pretty much limitless...
hth
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/