A simple PDF to JPG Converter written in PHP utilizing GhostScript for *nix systems. Automatically creates multiple sizes of the JPG file as denoted in the script.
This document contains the release notes for PDF to JPG Converter version 1.0.0. The following sections describe the release in detail and provide information that supplements the main documentation. This is the first public release for wide evaluation and usage. Your feedback is important to me, please help me make this the best PHP based PDF to JPG Converter script possible. Keep in mind that I am continuing to work on PDF to JPG Converter and things may change in the future as updates are released.
Everything is new as this is the first release. It is as of now a simple script that can be called as a function. As time goes by and I receive more user feedback, I will update the script (free of charge to those who have purchased the script already of course) to create a more robust system.
Installation of this script for use is simple, painless and most of all, fast! You can simple drop the PHP file into a directory on your server, or you can copy the code (along with all the comments and licensing information) into your own PHP class.
Using the PDF to JPG Converter is easy! After you have followed the installation instructions above, simply call the following wherever you want to use it:
try{ ConvertMeDammit(the_file, the_quality, the_directory);
} catch(Exception $e){ echo $e->getMessage(); }
This will try to run the function, but if an error is encountered, it will throw an exception. Do note the following are required in the function call:
the_file: The PDF file you want to convert.
the_quality: The quality of the JPG files (must be in X00 format, ie: 400). The default for this is 600.
the_directory: The final directory where the JPG files will be stored.
Version 1.0.0 of PDF to JPG Converter may or may not work with GPL GhostScript releases prior to or after 8.63.
The code library seems good. But the said sample code is not working. The installation documentation needs to provide more descriptive. Also, the dependency of the code is not mentioned.
Questions & Comments