celo / ghost-pdf
PDF compression component
Installs: 730
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/celo/ghost-pdf
Requires
- php: >=7.0
Requires (Dev)
- phpunit/phpunit: ^9.3
This package is auto-updated.
Last update: 2025-12-09 19:52:30 UTC
README
Library for compress PDF file using ghostscript.
Install
Install library through composer:
composer require celo/ghost-pdf
Usage
use Celo\GhostPDF\GhostPDF;
$gs = new GhostPDF($path);
$path_output_file = $gs->compress();
For max compression set first argument of compress function to true
Author
Christian Celora. Check my github at https://github.com/ChristianCelora