celo / ghost-pdf
PDF compression component
dev-master
2020-09-25 14:48 UTC
Requires
- php: >=7.0
Requires (Dev)
- phpunit/phpunit: ^9.3
This package is auto-updated.
Last update: 2025-05-09 18:42:26 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