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

description: settings

PDFSETTINGS

Method Name Argument Name Argument Type
settings settings Mostafaznv\PdfOptimizer\Enums\PdfSettings

Presets the distiller parameters to one of the following predefined settings:

  • /screen selects low-resolution output similar to the Acrobat Distiller Screen Optimized setting.
  • /ebook selects medium-resolution output similar to the Acrobat Distiller eBook setting.
  • /printer selects output similar to the Acrobat Distiller Print Optimized setting.
  • /prepress selects output similar to Acrobat Distiller Prepress Optimized setting.
  • /default selects output intended to be useful across a wide variety of uses, possibly at the expense of a larger output file.

{% hint style="info" %} Please be aware that the /prepress setting does not indicate the highest quality conversion. Using any of these presets will involve altering the input, and as such may result in a PDF of poorer quality (compared to the input) than simply using the defaults. The ‘best’ quality (where best means closest to the original input) is obtained by not setting this parameter at all (or by using /default). {% endhint %}

The PDFSETTINGS presets should only be used if you are sure you understand that the output will be altered in a variety of ways from the input. It is usually better to adjust the controls individually if you have a genuine requirement to produce, for example, a PDF file where the images are reduced in resolution.

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