I have a unique problem in that I need to convert pdf pages to jpegs on the fly as users upload them. So far all my research points to a piece of software called pdf2img by http://verypdf.com
. What makes it so useful is that you can run it from the command line. See http://www.verypdf.com/pdf2tif/pdf-to-image/help.htm
for commands. I was hoping it would be an easy task using cfexecute on my CF7 server. So far not so good. I have never used cfexecute or bat files. Research so far has been pretty geeky so far and not directly related to my current task at hand.
When I run the following command from the command line I get the output I desire.
-i F:\test.pdf -o F:\output.jpg -f 1 -l 1
This outputs the first page of the PDF as a jpg. No problem. The problem occurs when I try to add this command to a .bat file and run it from the web with a script like so.
My .bat file has changed wildly in the last day so I won't even post an example here as I believe this is where the problem is. I have no idea how to launch the exe located at C:\Program Files\VeryPDF PDF2Image v2.1\pdf2img.exe
Any help is greatly appriciated.