wespals / ghostscript-console
A Symfony CLI utility for the Ghostscript executable
v1.0.0
2022-06-01 01:39 UTC
Requires
- php: >=7.1
- symfony/console: ^4.3
Requires (Dev)
- phpunit/phpunit: ^7.5
This package is auto-updated.
Last update: 2025-03-01 00:37:59 UTC
README
A Symfony CLI utility for the Ghostscript executable
Installation
composer require wespals/ghostscript-console
Usage
php vendor/bin/ghostscript-console ghostscript -g 'sDEVICE=pdfwrite' --gs='dCompatibilityLevel=1.4' ./tests/files/2019FormW2-PDFv1.7.pdf ./tests/files/temp/ghostscript-output.pdf
Default parameter switches
The following parameters are automatically set if not explicitly included in the command.
- -dSAFER
- -dBATCH
- -dNOPAUSE
- -sDEVICE=pdfwrite
View command help and examples
php vendor/bin/ghostscript-console ghostscript --help