McRonald
McRonald

Reputation: 1005

Conversion of an Adobe PDF to the JPEG

Is there any ready PHP-based soultiuon for creation of an JPEG images from the Adobe's PDF files? Just like this: http://www.convertpdftoimage.com/

Upvotes: 0

Views: 351

Answers (2)

Spudley
Spudley

Reputation: 168685

The ImageMagick program allows conversion between graphic formats, and it includes support for reading PDF files. Therefore it should be able to convert PDF to JPG. (indeed, googling for ImageMagick pdf to jpg gives plenty of results, with good usage examples)

Furthermore, there is a PHP extension for ImageMagick, so if you have that extension included in your PHP, then it should be pretty simple (you can check which extensions are included in a given PHP installation by using the phpinfo() function).

If you don't have that extension (and you can't install it), you can still use ImageMagick, using it's command-line interface via the PHP shell_exec() function, etc.

Upvotes: 3

Bart Vangeneugden
Bart Vangeneugden

Reputation: 3446

I don't know about PHP. But we use this application: Callas pdfToolbox. It's standalone on your UNIX server. Apache provides a Java solutions: PDFBox

Not sure PHP is capable of rendering PDF's. Getting the text out of then however should be easy.

Upvotes: -1

Related Questions