ok, so I'm trying to do this and I time out. and I'm a newbie at cfexecute convert somefile.pdf somefile.jpg
yes the pdf is called somefile.pdf (keeping things simple) does the exe need to be somewhere special? I'm pointing to the directory it's in. John On 7/5/05, Adrian J. Moreno <[EMAIL PROTECTED]> wrote: > 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 > > > ---------------------------------------------------------- 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
