Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

convert a pdf to a series of images in php

Posted on 2015-01-08
3
Medium Priority
?
123 Views
Last Modified: 2015-01-08
Hi

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
0
Comment
Question by:andieje
  • 2
3 Comments
 
LVL 56

Accepted Solution

by:
Joe Winograd, EE MVE 2015&2016 earned 2000 total points
ID: 40538978
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):
http://www.foolabs.com/xpdf/

Here's a 5-minute EE video Micro Tutorial about Xpdf in general:
http://www.experts-exchange.com/VP_213.html

And another one specifically about PDFimages:
http://www.experts-exchange.com/VP_215.html

Regards, Joe
0
 

Author Closing Comment

by:andieje
ID: 40538993
thanks a lot
0
 
LVL 56

Expert Comment

by:Joe Winograd, EE MVE 2015&2016
ID: 40539011
You're very welcome.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
Recently, an awarded photographer, Selina De Maeyer (http://www.selinademaeyer.com/), completed a photo shoot of a beautiful event (http://www.sintjacobantwerpen.be/verslag-en-fotoreportage-van-de-sacramentsprocessie-door-antwerpen#thumbnails) in An…
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question