Solved

convert a pdf to a series of images in php

Posted on 2015-01-08
3
100 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 51

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 51

Expert Comment

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

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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 four methods for overlaying images in a container on a web page
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

759 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now