PHPackages                             leomage/php-pdfbox - 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. leomage/php-pdfbox

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

leomage/php-pdfbox
==================

PHP-PDFBox

v1.0.0(7y ago)210MITPHPPHP ^7.1

Since Apr 16Pushed 7y agoCompare

[ Source](https://github.com/leomage/php-pdfbox)[ Packagist](https://packagist.org/packages/leomage/php-pdfbox)[ RSS](/packages/leomage-php-pdfbox/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

PHP PDFBox
==========

[](#php-pdfbox)

PHP-PDFBox is a tiny lib which helps you to use PDFBox

PDFBox is published under the Apache License v2.0 and is described as "The Apache PDFBox® library is an open source Java tool for working with PDF documents."

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

[](#installation)

It is recommended to install PHP-PDFBox through [Composer](http://getcomposer.org) :

```
{
    "require": {
        "leomage/php-pdfbox": "^1.0"
    }
}
```

Main API usage:
---------------

[](#main-api-usage)

```
$file = new \Pdfbox\Processor\PdfFile(
    new Pdfbox(
        '/path/to/java',
        '/path/to/pdfbox-app.jar',
        new \Psr\Log\NullLogger()
    );
);

// Convert pdf to text
echo $file->toText('test.pdf');
```

See `examples/*.php` for more examples.

License
-------

[](#license)

PHP-Pdfbox is released under MIT License

See LICENSE file for more information

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2634d ago

### Community

Maintainers

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

---

Top Contributors

[![thefreeleo](https://avatars.githubusercontent.com/u/13882054?v=4)](https://github.com/thefreeleo "thefreeleo (4 commits)")

---

Tags

pdfpdfbox

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/leomage-php-pdfbox/health.svg)

```
[![Health](https://phpackages.com/badges/leomage-php-pdfbox/health.svg)](https://phpackages.com/packages/leomage-php-pdfbox)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[laravel/framework

The Laravel Framework.

34.8k543.8M19.7k](/packages/laravel-framework)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k13](/packages/tempest-framework)[knplabs/knp-snappy

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

4.5k72.4M62](/packages/knplabs-knp-snappy)[pontedilana/php-weasyprint

PHP library allowing PDF generation from an url or a html page. Wrapper for Kozea/WeasyPrint.

781.2M17](/packages/pontedilana-php-weasyprint)[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k36.7M151](/packages/spatie-browsershot)

PHPackages © 2026

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