mostafaznv/pdf-optimizer
Optimize and compress PDFs in PHP or Laravel using Ghostscript. Fluent API with extensive option support, logging, and customization. Works with file paths, UploadedFile, and storage disks, with optional queue support for async optimization.
| Method Name | Argument Name | Argument Type |
|---|---|---|
| preserveMarkedContent | status | boolean |
We now attempt to preserve marked content from input PDF files through to the output PDF file (note, not in output PostScript!) This does not include marked content relating to optional content, because currently we do not preserve optional content, it is instead applied by the interpreter. This control also requires the PDF interpreter to pass the marked content to the pdfwrite device, this is only done with the new (C-based) PDF interpreter. The old (PostScript-based) interpreter does not support this feature and will not pass marked content to the pdfwrite device.
How can I help you explore Laravel packages today?