Solved

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

Posted on 2008-06-25
3
2,676 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
Comment Utility
0
 
LVL 9

Assisted Solution

by:tkalchev
tkalchev earned 250 total points
Comment Utility
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
Comment Utility
thanks all!
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
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.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
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…

772 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

10 Experts available now in Live!

Get 1:1 Help Now