Solved

convert a pdf to a series of images in php

Posted on 2015-01-08
3
111 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 54

Accepted Solution

by:
Joe Winograd, EE MVE 2015&2016 earned 500 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 54

Expert Comment

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

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Background Still having to process all these year-end "csv" files received from all these sources (including Government entities), sometimes we have the need to examine the contents due to data error, etc... As a "Unix" shop, our only readily …
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.

615 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