Skip to content

Latest commit

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

GitHub licenseGitHub tag (latest SemVer)PackagistPackagist DownloadsGitHub issuesGitHub forksGitHub stars

GhostscriptAPI

PHP wrapper class for Ghostscript API

Requirements

Instalation

php composer.phar require "fawno/gsapi"
<?phprequire__DIR__ . '/vendor/autoload.php';
useFawno\GhostscriptAPI\GSAPI;

Example

require__DIR__ . '/vendor/autoload.php';
useFawno\GhostscriptAPI\GSAPI;
useFawno\GhostscriptAPI\GSAPIException;
$gs = newGSAPI('/usr/gs920/bin/gsdll64.dll');
$params = [
'-sDEVICE=pdfwrite',
'-dPDFSETTINGS=/ebook',
'-sOutputFile=ebook.pdf',
'original.pdf',
];
try {
$gs->run_with_args($params);
} catch (GSAPIException$exception) {
echo$exception;
}

Releases

Packages

Used by

Contributors

Languages