Solved

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

Posted on 2008-06-25
3
2,686 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
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 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…

803 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