Installation
Requirements:
PHP 8.2 or higher
Ghostscript 9 or 10
1. Install Ghostscript
sudo apt update -y
sudo apt-get install ghostscriptsudo apk add --upgrade ghostscriptbrew install ghostscriptDownload and install Ghostscript
Add Ghostscript to your system path
Restart your computer
Note: This package has not been tested on Windows machines. While it is designed to work seamlessly on Unix-based systems, users on Windows may experience compatibility issues.
We recommend testing the package in a Windows environment and welcome any feedback or contributions to enhance Windows compatibility. If you encounter issues or have suggestions for improving Windows support, please feel free to open an issue on our GitHub repository. Thank you for your understanding.
2. Install the package via composer
composer require mostafaznv/pdf-optimizer3. Publish config file (Laravel Only)
php artisan vendor:publish --provider="Mostafaznv\PdfOptimizer\PdfOptimizerServiceProvider"4. Done
Last updated
Was this helpful?