Pdf To Png With Imagemagick

liunx

Guest
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.<br /><br />Here's the php code I'm using for both conversions:<br /><br />$command = shell_exec("/usr/bin/convert test.pdf t1.png");<br />$command = shell_exec("/usr/bin/convert page7.jpg page72.png");<br /><br />Do I need to do something different in order to convert the pdf?<br /><br />Thanks<!--content-->
Welcome to the forum charlielha <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><br /><br />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.<!--content-->
Welcome to the forum, charlielha. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><!--content-->
Thanks for the welcome.<br /><br />As for Imagemagick, I've used it in another server to convert pdfs with no problem.<br /><br />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.<br /><br />If anyone has more knowledge of imagemagick and knows how to get this done, or a workaround, I would greatly appreciate their input.<br /><br />Thanks<!--content-->
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 <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><br /><!--content-->
It was fixed with ghostscript. thanks for the help<!--content-->
 
Top