converting from .pdf to .jpg
Posted: 2009-12-22T13:12:11-07:00
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.
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.