bhavya Posted December 22, 2009 Share Posted December 22, 2009 i have installed ImageMagick 6.5.8-Q16 Ghost script and XAMpp now i m trying to convert .pdf file to .jpg code: <?php exec("convert inline.pdf inline.jpg") or die("couldn't convert the pdf"); ?> error: couldn't convert the pdf i have some more questions like 1.do i need to put this inline.pdf file in Images folder of imagemagick 2.if it is converted from .pdf to .jpg where this .jpg file will be created 3.how to print this .jpg file can anyone please help me. Link to comment https://forums.phpfreaks.com/topic/186078-conversion-from-pdf-2-jpg/ Share on other sites More sharing options...
teamatomic Posted December 22, 2009 Share Posted December 22, 2009 Try giving absolute paths to both files. HTH Teamatomic Link to comment https://forums.phpfreaks.com/topic/186078-conversion-from-pdf-2-jpg/#findComment-982673 Share on other sites More sharing options...
bhavya Posted December 22, 2009 Author Share Posted December 22, 2009 its working now i changed convert to convert.exe exec("convert.exe inline.pdf inline.jpg"); Thank you Link to comment https://forums.phpfreaks.com/topic/186078-conversion-from-pdf-2-jpg/#findComment-982726 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.