PDF to JPG Converter

PDF to JPG Converter

PDF to JPG Converter written in PHP utilizing GhostScript

  • Language: PHP
  • Released: Apr 28, 2011
    Last Update: Apr 27, 2011

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.


Release Notes


  • Product Name: PDF to JPG Converter
  • Release Number: 1.0.0
  • Release Date: April 28th 2011
  • Customer Support: For more information or support, please visit my website or email me at juan.sanchez@juanleonardosanchez.com


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.


  • System Processor: 800MHz
  • System Memory: 256MB
  • Free Disk Space: 1MB (plus any additional space required for the JPG files)
  • Operating System: Linux (kernel 2.4)
  • Networking: N/A
  • Required Software: GPL GhostScript 8.63 by Artifex Software, Inc. (http://pages.cs.wisc.edu/~ghost/doc/GPL/gpl863.htm)


Version 1.0.0 of PDF to JPG Converter may or may not work with GPL GhostScript releases prior to or after 8.63.

You need to log-in or create an account
  • Create an account
  • Log-in
Please use your real name.
Activation link will be sent to this address.
Minimum 8 characters
Enter your password again

Clicking this button confirms you read and agreed to the terms of use and privacy policy.


Save your watchlist

Fill your details below to receive project updates from your watch list - including new versions, price changes and discounts.

I agree to the terms of use and privacy policy.

2 licenses, starting from From » FREE 14 day money-back guarantee View Licenses
or Get a quote

for customization or integration services

  • 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.
    PS Prashant Sutariya
    3 years ago, 0 comments
    Was this helpful?
    Flag 0 of 1 people found this review helpful
Post a comment

Or enter your name and Email
  • PM perera malinda 2 years ago
    great job.Nice Work