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.
PDF Optimizer stands as a robust PHP package meticulously crafted for effortless optimization and compression of PDF files. Whether you are engaged in a standalone PHP project or navigating the Laravel landscape, pdf-optimizer emerges as a powerful solution, utilizing the well-known ghostscript tool to significantly reduce PDF file sizes.
file paths, UploadedFile instances, and disk storage. This guarantees flexibility and user-friendly integration within the Laravel ecosystem.{% hint style="warning" %} License Notice
This package is licensed under the MIT License.
It does not include the Ghostscript. However, it requires Ghostscript to be installed on the server in order to function. Ghostscript is licensed separately under the AGPL or a commercial license from Artifex. If you choose the AGPL version of Ghostscript, you must comply with the AGPL terms in your own application.
Please ensure you have the appropriate Ghostscript license for your use case. {% endhint %}
How can I help you explore Laravel packages today?