Download the PHP package org_heigl/ghostscript without Composer
On this page you can find all versions of the php package org_heigl/ghostscript. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download org_heigl/ghostscript
More information about org_heigl/ghostscript
Files in org_heigl/ghostscript
Package ghostscript
Short Description A PHP-Wrapper around the Ghostscript-CLI
License MIT
Informations about the package ghostscript
Org_Heigl\Ghostscript
A PHP-wrapper to the Ghostscript-CLI
The main reason to create this library was to create images from PDF- or Postscript-files. As those Files can be either in RGB- or in CMYK-Colorspace the library tries to handle colors so that the original file and the image are close in color-impression. This is especially important as f.e. PNG is RGB-only while JPEG can be either in RGB or CMYK.
Multipaged PDF-Files will create multiple images! To not overwrite your image-files the filename will be passed to sprintf to create a filename containing the number of the page. The one and only parameter will be the number of the page.
Why another Ghostscript-Wrapper?
There are currently 2 other wrappers around that both didn't meet the requirements I had:
While the gravitymedia library concentrates more on creating PDFs from input-media the alchemy library is not easily extendable and doesn't handle the parameters to finetune Ghostscript the way I needed them.
So this library tries to handle most of the important switches to ghostscript and also allows you to extend the library by implementing your own driver using the . More information on that will be shown in the Documentation
Installation
This package is best installed using composer.
composer require org_heigl/ghostscript
Documentation
You can find the documentation for the library at https://heiglandreas.github.io/Org_Heigl_Ghostscript