PHPackages                             itbz/fpdi - 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. itbz/fpdi

Abandoned → [setasign/fpdi](/?search=setasign%2Ffpdi)ArchivedLibrary[PDF &amp; Document Generation](/categories/documents)

itbz/fpdi
=========

Unofficial PSR-4 compliant version of the FPDI library

1.6.1(10y ago)201.5M↑44.3%247MITPHPPHP &gt;=5.3.0

Since May 13Pushed 8y ago2 watchersCompare

[ Source](https://github.com/mreg-archive/fpdi)[ Packagist](https://packagist.org/packages/itbz/fpdi)[ RSS](/packages/itbz-fpdi/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (6)Versions (10)Used By (7)

> *NOTE* that this package is discontinued and will not be updated. Since version 1.5.3 FPDI is officially available via composer and [github](https://github.com/Setasign/FPDI). You are encouraged to update to FPDI 2.0 and use the official fork.

FPDI - Free PDF Document Importer
=================================

[](#fpdi---free-pdf-document-importer)

[![Packagist Version](https://camo.githubusercontent.com/f9ac41cc7c6bef6f4ce4478739318d05d60310d1ea59ad0ccec8fdcbfce8ec7c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6974627a2f667064692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/itbz/fpdi)

Unofficial [PSR-4](http://www.php-fig.org/psr/psr-4/) compliant version of the [FPDI](http://www.setasign.com/products/fpdi/about/) library with some minor changes.

The library is namespaced in fpdi. To create instance use:

```
$fpdi = new \fpdi\FPDI();
```

Installing
----------

[](#installing)

Install using [composer](https://getcomposer.org/). For historical reasons the package exists in packagist as `itbz/fpdi`. From project root use

```
composer require itbz/fpdi:~1.0

```

Support for TCPDF
-----------------

[](#support-for-tcpdf)

To use with TCPDF version `1.5.2-patch1` or later must be used, due to a conversion error in earlier versions.

Please note that the `TCPDF` class must be loaded prior to instantiating FPDI to force the usage of TCPDF. An example can be found [here](https://github.com/hanneskod/fpdi/issues/16).

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

[](#contributing)

See the [CONTRIBUTING](CONTRIBUTING.md) file.

Build from source
-----------------

[](#build-from-source)

Converting from setasign source is power by [phing](https://www.phing.info/). See [build.xml](build.xml) for concrete instructions. To execute a build from the command line use

```
$ phing

```

Tests are run using

```
$ phing test

```

Possibly followed by

```
$ phing cleanup

```

License
-------

[](#license)

The MIT License (MIT)

Copyright (c) 2015 Setasign - Jan Slabon,

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity50

Moderate usage in the ecosystem

Community25

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 87.5% 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 ~173 days

Recently: every ~145 days

Total

9

Last Release

3729d ago

### Community

Maintainers

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

---

Top Contributors

[![hanneskod](https://avatars.githubusercontent.com/u/1369274?v=4)](https://github.com/hanneskod "hanneskod (21 commits)")[![mannysoft](https://avatars.githubusercontent.com/u/774913?v=4)](https://github.com/mannysoft "mannysoft (1 commits)")[![reiz](https://avatars.githubusercontent.com/u/652130?v=4)](https://github.com/reiz "reiz (1 commits)")[![Vincent--](https://avatars.githubusercontent.com/u/9378735?v=4)](https://github.com/Vincent-- "Vincent-- (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/itbz-fpdi/health.svg)

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

###  Alternatives

[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M102](/packages/spatie-browsershot)[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.2k57.6M131](/packages/openspout-openspout)[setasign/tfpdf

This class is a modified version of FPDF that adds UTF-8 support. The latest version is based on FPDF 1.85.

426.1M30](/packages/setasign-tfpdf)[asika/pdf2text

Simple PHP PDF to text class.

25828.1k](/packages/asika-pdf2text)[swiss-payment-slip/swiss-payment-slip-fpdf

Create Swiss payment slips with reference number (ESR) or without (ES) as PDFs with FPDF

11265.3k](/packages/swiss-payment-slip-swiss-payment-slip-fpdf)

PHPackages © 2026

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