PHPackages                             peronh/pdf-compress - 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. peronh/pdf-compress

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

peronh/pdf-compress
===================

v1.0.3(4y ago)11.7kMITPHPPHP &gt;=5.4

Since Dec 9Pushed 4y ago1 watchersCompare

[ Source](https://github.com/peronh/pdf-compress)[ Packagist](https://packagist.org/packages/peronh/pdf-compress)[ RSS](/packages/peronh-pdf-compress/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (4)Used By (0)

Pdf compress
============

[](#pdf-compress)

Installation
------------

[](#installation)

```
    composer require peronh/pdf-compress

```

Highlights
----------

[](#highlights)

can be used without any framework.

Example Usage
-------------

[](#example-usage)

```
// Import Class
use Peronh\PDFCompress\PDFCompress;

// and now you can use library
$pdf = new PDFCompress();
$pdf->AddFile('path/to/source_pdf_file.pdf');
$pdf->CompressFile('path/to/dest_pdf_file.pdf', 'default_ebook');
```

Additional option
-----------------

[](#additional-option)

```
screen   (screen-view-only quality, 72 dpi images)
ebook    (low quality, 150 dpi images)
printer  (high quality, 300 dpi images)
prepress (high quality, color preserving, 300 dpi imgs)
default  (almost identical to /screen)

```

License
-------

[](#license)

The MIT License (MIT). Please see [*License* File](LICENSE) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 52.8% 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.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

1621d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a7b8e25726ec065add2fb73609719ec7a93131161e50a3828a4639b7caead35b?d=identicon)[peronh](/maintainers/peronh)

---

Top Contributors

[![peronh](https://avatars.githubusercontent.com/u/29332478?v=4)](https://github.com/peronh "peronh (19 commits)")[![pronyecz](https://avatars.githubusercontent.com/u/141247896?v=4)](https://github.com/pronyecz "pronyecz (17 commits)")

---

Tags

pdfminifyresizecompress

### Embed Badge

![Health badge](/badges/peronh-pdf-compress/health.svg)

```
[![Health](https://phpackages.com/badges/peronh-pdf-compress/health.svg)](https://phpackages.com/packages/peronh-pdf-compress)
```

###  Alternatives

[barryvdh/laravel-dompdf

A DOMPDF Wrapper for Laravel

7.3k87.6M278](/packages/barryvdh-laravel-dompdf)[tecnickcom/tcpdf

TCPDF is a PHP class for generating PDF documents and barcodes.

4.5k101.8M473](/packages/tecnickcom-tcpdf)[mpdf/mpdf

PHP library generating PDF files from UTF-8 encoded HTML

4.7k77.1M493](/packages/mpdf-mpdf)[knplabs/knp-snappy

PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. Wrapper for wkhtmltopdf/wkhtmltoimage.

4.5k68.3M56](/packages/knplabs-knp-snappy)[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)

PHPackages © 2026

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