peronh / pdf-compress
Installs: 1 304
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=5.4
This package is auto-updated.
Last update: 2025-05-10 03:22:27 UTC
README
Installation
composer require peronh/pdf-compress
Highlights
can be used without any framework.
Example Usage
// Import Class use Peronh\PDFCompress\PDFCompress; // and now you can use library $pdf = new PDFCompress(); $pdf->AddFile('path/to/source_pdf_file.pdf'); $pdf->CompressFile('path/to/dest_pdf_file.pdf', 'default_ebook');
Additional option
screen (screen-view-only quality, 72 dpi images)
ebook (low quality, 150 dpi images)
printer (high quality, 300 dpi images)
prepress (high quality, color preserving, 300 dpi imgs)
default (almost identical to /screen)
License
The MIT License (MIT). Please see License File for more information.