mostafaznv/pdf-optimizer
Optimize and compress PDFs in PHP or Laravel using Ghostscript. Fluent, chainable API with rich options, logging, and customization. Laravel-friendly inputs (paths, uploads, disks) plus queue support for async optimization.
| Method Name | Argument Name | Argument Type |
|---|---|---|
| useFlateCompression | status | boolean |
Because the LZW compression scheme was covered by patents at the time this device was created, pdfwrite does not actually use LZW compression: all requests for LZW compression are ignored. UseFlateCompression is treated as always on, but the switch CompressPages can be set too false to turn off page level stream compression. Now that the patent has expired, we could change this should it become worthwhile.
How can I help you explore Laravel packages today?