wespals/ghostscript-console

A Symfony CLI utility for the Ghostscript executable

v1.0.0 2022-06-01 01:39 UTC

This package is auto-updated.

Last update: 2024-05-29 05:21:14 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

How to use Ghostscript

Documentation