Reputation: 7846
I have a PDF document that has 32 pages and need to convert each page to a JPG image. How can I process each PDF page separately instead of a whole document? I've tried doing some research to no luck. I looked at the PHP.net PDF documentation and it doesn't seem like there's a way for me to do what I want to do?
Upvotes: 1
Views: 200
Reputation: 2909
If you have Adobe Acrobat, you can just use it to export the PDF to JPG files, one for each page.
Upvotes: 0
Reputation: 890
Using ImageMagick will do this for you...
$image = new Imagick("temp/{$filename}.pdf[0]");
Were the array [0] is the page (0 being the first page)
Upvotes: 1