celo/ghost-pdf

PDF compression component

Maintainers

Package info

github.com/ChristianCelora/GhostPDF

pkg:composer/celo/ghost-pdf

Statistics

Installs: 757

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

dev-master 2020-09-25 14:48 UTC

This package is auto-updated.

Last update: 2026-03-09 20:21:53 UTC


README

Library for compress PDF file using ghostscript.

Install

Install library through composer:

composer require celo/ghost-pdf

Usage

use Celo\GhostPDF\GhostPDF;

$gs = new GhostPDF($path);
$path_output_file = $gs->compress();

For max compression set first argument of compress function to true

Author

Christian Celora. Check my github at https://github.com/ChristianCelora