Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Pdf Optimizer Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Installation

Requirements:

1. Install Ghostscript

{% tabs %} {% tab title="Ubuntu" %}

sudo apt update -y
sudo apt-get install ghostscript

{% endtab %}

{% tab title="Alpine" %}

sudo apk add --upgrade ghostscript

{% endtab %}

{% tab title="MacOS" %}

brew install ghostscript

{% endtab %}

{% tab title="Windows" %}

  1. Download and install Ghostscript
  2. Add Ghostscript to your system path
  3. 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. {% endtab %} {% endtabs %}

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"

{% hint style="info" %} If you're using Laravel, this command publishes the configuration file, allowing you to customize pdf-optimizer settings. {% endhint %}

4. Done

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4
php-http/client-implementation
phpcr/phpcr-implementation
cucumber/gherkin-monorepo
haydenpierce/class-finder
psr/simple-cache-implementation