charlielha Posted November 22, 2007 Posted November 22, 2007 I'm able to use ImageMagick to convert a jpg image into a png but using the same code I can't convert a pdf to either a png or jpg. Here's the php code I'm using for both conversions: $command = shell_exec("/usr/bin/convert test.pdf t1.png"); $command = shell_exec("/usr/bin/convert page7.jpg page72.png"); Do I need to do something different in order to convert the pdf? Thanks Quote
TCH-Bruce Posted November 22, 2007 Posted November 22, 2007 Welcome to the forum charlielha Don't know if you can convert pdf files on the server or not. You can open a ticket with the help desk and they will be able to tell you for sure. Quote
charlielha Posted November 22, 2007 Author Posted November 22, 2007 Thanks for the welcome. As for Imagemagick, I've used it in another server to convert pdfs with no problem. I opened a ticket and support said that they weren't aware of any limitations with the software and directed me to the forums to get more information as they are not well versed with the script. If anyone has more knowledge of imagemagick and knows how to get this done, or a workaround, I would greatly appreciate their input. Thanks Quote
TCH-Vivek Posted November 23, 2007 Posted November 23, 2007 Welcome to the forum Charlielha. I think this problem was fixed by Carl by installing ghostscripts. Can you please double check and let me know if it was not. Thanks Quote
charlielha Posted December 11, 2007 Author Posted December 11, 2007 It was fixed with ghostscript. thanks for the help Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.