• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2737
  • Last Modified:

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

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
willsherwood
Asked:
willsherwood
2 Solutions
 
tkalchevCommented:
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
 
willsherwoodAuthor Commented:
thanks all!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now