convert a pdf to a series of images in php


Is there anything in php that will take a pdf and convert it to a series of images, one images per page.

If not how would i go about doing this? Would i have to call a shell script to do it perhaps using backticks or is there some other way

thanks experts
Who is Participating?
Joe Winograd - EE Fellow & MVEConnect With a Mentor DeveloperCommented:
I'm not knowledgeable in PHP, but if it is able to make a command line call (most languages are), you could try Xpdf's PDFimages, which, in a single command, is able to extract all the images from a PDF file and save each one in a separate image file (PBM, PPM, or JPG):

Here's a 5-minute EE video Micro Tutorial about Xpdf in general:

And another one specifically about PDFimages:

Regards, Joe
andiejeAuthor Commented:
thanks a lot
Joe Winograd - EE Fellow & MVEDeveloperCommented:
You're very welcome.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.