Solved

convert a pdf to a series of images in php

Posted on 2015-01-08
3
105 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 52

Accepted Solution

by:
Joe Winograd, EE MVE 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 52

Expert Comment

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

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
This article discusses how to create an extensible mechanism for linked drop downs.
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.

770 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