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

AbandonedArchivedLibrary

indigophp/pdf
=============

PDF adapter for PDF libraries

145PHP

Since Jan 15Pushed 12y ago1 watchersCompare

[ Source](https://github.com/indigophp-archive/pdf)[ Packagist](https://packagist.org/packages/indigophp/pdf)[ RSS](/packages/indigophp-pdf/feed)WikiDiscussions develop Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

Indigo PDF
==========

[](#indigo-pdf)

**PDF adapters for PDF libraries.**

Supported libraries:

- WkHTMLtoPDF (native)
- TCPDF

Install
-------

[](#install)

Via Composer

```
{
    "require": {
        "indigophp/pdf": "dev-master"
    }
}
```

Usage
-----

[](#usage)

```
use Indigo\Pdf\Adapter\TcpdfAdapter as Pdf;

// Setup config array
$options = array(
    'orientation' => 'P',
    'size'        => 'A4'
);

// Instantiate adapter
$pdf = new Pdf($options);

// Add a page
$pdf->addPage('test.html', array('orientation' => 'L'));

// Save it to file
$pdf->save('test.pdf');

// Output to the browser
$pdf->output('test.pdf');
```

**Note:** This is only a basic interface. If you need advanced usage, get the library itself and use that: `$pdf->getInstance()`

Library documentation
---------------------

[](#library-documentation)

- [WkHTMLtoPDF](http://madalgo.au.dk/~jakobt/wkhtmltoxdoc/wkhtmltopdf_0.10.0_rc2-doc.html) (This is the best I found)
- [TCPDF](http://www.tcpdf.org/)

Testing
-------

[](#testing)

```
$ phpunit
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/indigophp/pdf/blob/develop/CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Márk Sági-Kazár](https://github.com/sagikazarmark)
- [All Contributors](https://github.com/indigophp/pdf/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/indigophp/pdf/blob/develop/LICENSE) for more information.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0e4e105cea62b616d4cb376b08a849b6a428f646998537de150d16a8eb537b90?d=identicon)[mark.sagikazar](/maintainers/mark.sagikazar)

![](https://www.gravatar.com/avatar/1585b5a08e138e348f5b646231d0f16cb2eae06501fb9462bbc97a794d4de84a?d=identicon)[TamasBarta](/maintainers/TamasBarta)

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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