Page 1 of 1
Convert PDF into Image Files
Posted: Wed Nov 15, 2006 5:45 am
by rameshmrgn
hi all,
i have a PDF file,.
i would like to convert that pdf file into image files.
Each page should be converted into an image.
Kindly, help me.
Smiles,
Ramesh Mu.
Posted: Wed Nov 15, 2006 5:55 am
by brendandonhue
ImageMagick can do this (use the 'convert' utility.)
how to use converter from PHP
Posted: Wed Nov 15, 2006 5:59 am
by rameshmrgn
hi,
how to use the `converter` from PHP?
Posted: Wed Nov 15, 2006 6:15 am
by timvw
http://www.php.net/shell_exec should be a good starting point...
Posted: Wed Nov 15, 2006 8:41 am
by ibbo
Use exec to get convert to run (you may have to supply the pull path to convert).
Also when pulling pages out fo a pdf you can use the [n] to grab the page within the pdf file.
So
exec("convert file.pdf[2] page2.jpg");
Grabs page 3 of the pdf and saves it as page2.jpg.
ibbo
Posted: Thu Nov 16, 2006 12:53 am
by rameshmrgn
How to get the Number of pages in the PDF using PHP?