Solved

PHP or Linux script to convert from PDF to .gif, .png, .tiff or .jpg format file

Posted on 2008-06-25
3
2,681 Views
Last Modified: 2010-04-21
I understand that PHP GD library does not support convesion from a PDF file to a raster format.

Does anyone have a suggestion for a PHP script or Linux script (callable from PHP) that can do this conversion?

thanks
0
Comment
Question by:willsherwood
3 Comments
 
LVL 48

Accepted Solution

by:
hernst42 earned 250 total points
ID: 21870164
0
 
LVL 9

Assisted Solution

by:tkalchev
tkalchev earned 250 total points
ID: 21873215
Or much more easier if you have shell access (ImageMagick too):

shell_exec ( "convert file.pdf file.gif" );
shell_exec ( "convert file.pdf file.png" );
shell_exec ( "convert file.pdf file.tif" );
shell_exec ( "convert file.pdf file.jpg" );
0
 

Author Closing Comment

by:willsherwood
ID: 31470694
thanks all!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
This article discusses four methods for overlaying images in a container on a web page
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

895 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

15 Experts available now in Live!

Get 1:1 Help Now