Installation

Requirements:

1. Install Ghostscript

sudo apt update -y
sudo apt-get install ghostscript

2. Install the package via composer

composer require mostafaznv/pdf-optimizer

3. Publish config file (Laravel Only)

php artisan vendor:publish --provider="Mostafaznv\PdfOptimizer\PdfOptimizerServiceProvider"

If you're using Laravel, this command publishes the configuration file, allowing you to customize pdf-optimizer settings.

4. Done

Last updated