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.
Adopt if:
Look Elsewhere if:
setasign/fpdf for lightweight tasks).spatie/pdf-to-text or mikehaertl/phpwkhtmltopdf).For Executives: "This package lets us slash PDF storage costs and speed up document delivery without hiring a PDF specialist. By integrating Ghostscript’s industry-standard compression into our Laravel stack, we can automate optimization for uploads/downloads—think 70% smaller files for invoices, contracts, or catalogs. The queue system ensures it won’t bog down our servers during peak times. Upfront cost? Just ensuring Ghostscript’s licensing aligns with our AGPL/commercial needs."
For Engineers: *"A drop-in Laravel package that wraps Ghostscript for PDF compression with a clean, chainable API. Supports:
UploadedFile or disk paths.PdfSettings::PRINT for high-fidelity output).How can I help you explore Laravel packages today?