PHPackages                             mal33k-eden/gazelle-pdf-compressor - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. mal33k-eden/gazelle-pdf-compressor

ActiveLib[PDF &amp; Document Generation](/categories/documents)

mal33k-eden/gazelle-pdf-compressor
==================================

A PHP library purposely for compressing pdf. It executes qpdf commands underthehood

360PHP

Since Jul 24Pushed 4y ago1 watchersCompare

[ Source](https://github.com/mal33k-eden/Gazelle-PDF-Compressor)[ Packagist](https://packagist.org/packages/mal33k-eden/gazelle-pdf-compressor)[ RSS](/packages/mal33k-eden-gazelle-pdf-compressor/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

\#GPDFC - Gazelle PDF Compressor Ghostscript php wrapper purposely to reduce PDF files.

\#Story GPDFC solely implements the full power of the ghost-script's shrinking (reduce filesize) capability.

I built this simple library, because I didn't get any suitable project to accomplish my PDF file reduction tasks i also got some inspiration from Alfred Klomp from [www.alfredklomp.com](http://www.alfredklomp.com). This library feeds a PDF through Ghostscript, which performs lossy recompression by such methods as downsampling the images to 150dpi. This configuration results in a better quality buy yet a much smaller file.

\#Features

- Shrink remote or local pdf files
- Works on windows and unix based systems
- More features to come

\#Requirement

- For GPDFC to work, the ghostscript command (v9.5.2) must be installed and working in the environment (development machine or server) you are using this library in. Check the links section for more help on downloads and installation of ghostscript.
- PHP ^v7.4

\#Installation You can use composer

`composer require mal33k-eden/gazelle-pdf-compressor `

\#Links

-
-

\#Usage **Compress**

```
     use  EmmKwami\GPDFC\GPDFC;

     * GPDFC constructor.
     * @param $inputPath  //must be a pdf file
     * @param $outputFile //name of the output pdf file after compression
     * @param $fileLocation  // (optional) either local or foreign - default = local
     * @param $environment // (optional)either uinx or windows - default = unix

     //instantiate GPDFC
     $GPDFC = new GPDFC('input.pdf','output.pdf');
     //Compress PDF
     $result = $GPDFC->compress());

 */

```

`

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/589d9c95d41aab60b7d0670dc9c72ac34effb854fb2cfe61ae500a4550541572?d=identicon)[mal33kEden](/maintainers/mal33kEden)

---

Top Contributors

[![mal33k-eden](https://avatars.githubusercontent.com/u/21183898?v=4)](https://github.com/mal33k-eden "mal33k-eden (5 commits)")

### Embed Badge

![Health badge](/badges/mal33k-eden-gazelle-pdf-compressor/health.svg)

```
[![Health](https://phpackages.com/badges/mal33k-eden-gazelle-pdf-compressor/health.svg)](https://phpackages.com/packages/mal33k-eden-gazelle-pdf-compressor)
```

###  Alternatives

[phpoffice/phpspreadsheet

PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine

13.9k293.5M1.3k](/packages/phpoffice-phpspreadsheet)[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M102](/packages/spatie-browsershot)[smalot/pdfparser

Pdf parser library. Can read and extract information from pdf file.

2.7k34.5M216](/packages/smalot-pdfparser)[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

2.8k24.8M48](/packages/barryvdh-laravel-snappy)[openspout/openspout

PHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way

1.1k57.6M131](/packages/openspout-openspout)[keboola/csv

Keboola CSV reader and writer

1451.8M21](/packages/keboola-csv)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
