I use GhostScript ( http://www.cs.wisc.edu/~ghost/ ) to create and
manipulate PDFs for a high-volume contract generation application I
built recently. There's a way to convert PDF to JPG using it as long as
you have <cfexecute> in order to call command-line functions:
> convert somefile.pdf somefile.jpg
simple, huh? :D
> convert -scale 100x100 somefile.pdf somefile.jpg
will create the JPG scaled down based on which is larger, width or height.
> convert somefile.pdf[0] somefile.jpg
will create a jpg of ONLY the first page of a PDF. Otherwise you get
files somefile.jpg.0 through somefile.jpg.N where the PDF file has N pages.
You can also use this to convert PDF to TIFF or GIF.
HTH,
Adrian
Jordan Gouger wrote:
I'm working on a project and I was wondering if Cold Fusion can
handle something like this:
In an ideal situation, I'd like to be able to upload a PDF, and
dynamically create a fixed size thumbnail image (jpg preferably) from
the first page of the PDF file, and crop the whitespace. Once an
image has been created, the image is then moved into a specific
directory.
My question, is can this even be done, and what plugins will I need
to create the thumbnail and read the PDF file?
Thanks,
Jordan
----------------------------------------------------------
To post, send email to [email protected]
To unsubscribe:
http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
To subscribe:
http://www.dfwcfug.org/form_MemberRegistration.cfm