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)210[1 issues](https://github.com/leomage/php-pdfbox/issues)MITPHPPHP ^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 4d 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

22

—

LowBetter than 22% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

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

2587d 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

[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)[chrome-php/chrome

Instrument headless chrome/chromium instances from PHP

2.6k4.5M64](/packages/chrome-php-chrome)[sensiolabs/gotenberg-bundle

A Symfony bundle that provides seamless integration with Gotenberg for generating PDFs and screenshots from various sources (HTML, Markdown, Office documents, URLs) with a clean, builder-based API.

210210.4k2](/packages/sensiolabs-gotenberg-bundle)[pontedilana/php-weasyprint

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

761.1M7](/packages/pontedilana-php-weasyprint)

PHPackages © 2026

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