peronh/pdf-compress

v1.0.3 2021-12-09 20:11 UTC

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.