PHPackages                             evosys21/pdflib - 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. evosys21/pdflib

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

evosys21/pdflib
===============

Fpdf, TCPDF, tFpdf - Advanced Multicell and Table

1.3.1(4w ago)52.4k↓34.5%2[1 issues](https://github.com/evosys21/pdflib/issues)1MITPHPPHP &gt;=8.0CI passing

Since Sep 25Pushed 4w ago2 watchersCompare

[ Source](https://github.com/evosys21/pdflib)[ Packagist](https://packagist.org/packages/evosys21/pdflib)[ RSS](/packages/evosys21-pdflib/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (8)Dependencies (21)Versions (11)Used By (1)

Fpdf, TCPDF, tFpdf - Advanced Multicell and Table
=================================================

[](#fpdf-tcpdf-tfpdf---advanced-multicell-and-table)

[![Build status](https://github.com/evosys21/pdflib/workflows/build/badge.svg)](https://github.com/evosys21/pdflib/actions)[![Latest Stable Version](https://camo.githubusercontent.com/9cd7875319dce7b21211d2257fd6ef46bb3082976d7e7bc71563833eeb546ad7/68747470733a2f2f706f7365722e707567782e6f72672f65766f73797332312f7068706c69622f762f737461626c65)](https://packagist.org/packages/evosys21/phplib)

- [Overview](#overview)
- [Advanced Multicell](#advanced-multicell)
    - [Features](#features)
    - [Examples](#examples)
    - [Usage and documentation](#usage-and-documentation)
- [Advanced table](#advanced-table)
    - [Features](#features-1)
    - [Examples](#examples-1)
    - [Usage and documentation](#usage-and-documentation-1)
- [FAQ](#faq)
    - [Why use the custom pdf class instead of `FPDF/TCPDF/tFPDF`](#why-use-the-custom-pdf-class-instead-of-fpdftcpdftfpdf)
    - [Where do I report issues?](#where-do-i-report-issues)
- [Contribute](#contribute)
- [License](#license)

---

Overview
--------

[](#overview)

`evosys21/pdflib` is a collection of PHP classes facilitating developers to create [Advanced Multicells](#advanced-multicell) and [Tables](#advanced-table) in [FPDF](http://www.fpdf.org), [TCPDF](https://github.com/tecnickcom/TCPDF), or [tFPDF](http://fpdf.org/en/script/script92.php).

**This repository is the continuation of the PDF Addons previously hosted on **

Advanced Multicell
------------------

[](#advanced-multicell)

This addon class allows the creation of an **Advanced Multicell for FPDF/TCPDF/tFPDF**, which uses as input a TAG-based formatted string instead of a simple string. The use of tags allows changing the font, style (bold, italic, underline), size, and color of characters and many other features.

The function is similar to the Multicell function in the TCPDF base class with extended parameters.

### Features

[](#features)

- Text can be **aligned**, **centered**, or **justified**.
- Different **fonts**, **sizes**, **styles**, and **colors** can be used.
- The cell block can be **framed**, and the **background** can be **colored**.
- **Links** can be used in any tag.
- **TAB** spaces (`\t`) can be used.
- Variable vertical positions can be used for **subscripts** or **superscripts**.
- **Cell padding** (left, right, top, bottom) can be adjusted.
- Controlled **tag sizes** can be used.

### Examples

[](#examples)

Multicell Example #1 - Overviewmulticell Example #1 - OverviewCode[example-multicell-1-overview.php](examples/Tcpdf/example-multicell-1-overview.php)[example-multicell-6-shrinking.php](examples/Tcpdf/example-multicell-6-shrinking.php)Preview[![](examples/Tcpdf/example-multicell-1-overview.png)](examples/Tcpdf/example-multicell-1-overview.pdf)[![](examples/Tcpdf/example-multicell-6-shrinking.png)](examples/Tcpdf/example-multicell-6-shrinking.pdf)Pdf[example-multicell-1-overview.pdf](examples/Tcpdf/example-multicell-1-overview.pdf)[example-multicell-1-overview.pdf](examples/Tcpdf/example-multicell-1-overview.pdf)Check the [examples](examples) folder for more examples with preview and the associated code.

### Usage and documentation

[](#usage-and-documentation)

[Click here](docs/multicell.md) for the end-user documentation for Advanced Multicell.

Advanced table
--------------

[](#advanced-table)

This addon class allows creation of an **Advanced Table for FPDF/TCPDF/tFPDF** in the pdf document in a very simple way.

### Features

[](#features-1)

- Every table cell supports [Advanced Multicell](#advanced-multicell) functionality.
- Table cells can be aligned both **vertically** and **horizontally**.
- Cells can span multiple **columns** and **rows**.
- The table automatically splits on **page breaks**.
- The **header** is automatically added to every new page.
- Default properties for **headers** and **rows** can be set but can be overridden per individual cell.
- **Advanced cell-splitting mode** is available.
- The table supports **transparency**.
- **Images** can be inserted into table cells.

A full end-user documentation for Advanced Table is available [here](docs/table.md).

### Examples

[](#examples-1)

Table Example #1 - OverviewTable Example #1 - OverviewCode[example-table-1-overview.php](examples/Tcpdf/example-table-1-overview.php)[example-table-2-overview.php](examples/Tcpdf/example-table-2-overview.php)Preview[![](examples/Tcpdf/example-table-1-overview.png)](examples/Tcpdf/example-table-1-overview.pdf)[![](examples/Tcpdf/example-table-2-overview.png)](examples/Tcpdf/example-table-2-overview.pdf)Pdf[example-table-1-overview.pdf](examples/Tcpdf/example-table-1-overview.pdf)[example-table-1-overview.pdf](examples/Tcpdf/example-table-1-overview.pdf)### Usage and documentation

[](#usage-and-documentation-1)

[Click here](docs/table.md) for the end-user documentation for Advanced Table.

FAQ
---

[](#faq)

### Why use the custom pdf class instead of `FPDF/TCPDF/tFPDF`

[](#why-use-the-custom-pdf-class-instead-of-fpdftcpdftfpdf)

The custom `EvoSys21\PdfLib\Fpdf\Pdf` object is used instead of `FPDF` because `FPDF`'s private/protected properties, like widths, margins, and fonts, need to be accessed to implement add-ons.
Since `FPDF` doesn't provide setters/getters for these properties, the class was extended to access them.

The same is valid for all 3 pdf classes: `FPDF/TCPDF/tFPDF`.

For more details see:

- [src/Fpdf/Pdf.php](src/Fpdf/Pdf.php)
- [src/Tcpdf/Pdf.php](src/Tcpdf/Pdf.php)
- [src/Tfpdf/Pdf.php](src/Tfpdf/Pdf.php)

### Where do I report issues?

[](#where-do-i-report-issues)

If something is not working as expected, please check or open an [issue](https://github.com/evosys21/pdflib/issues).

If you would like to discuss your use case or ask a general question, please use the discussions board: [discussions](https://github.com/evosys21/pdflib/discussions).

Contribute
----------

[](#contribute)

We welcome contributors to the project.

- Before opening a pull request, please create an issue to [discuss the scope of your proposal](https://github.com/evosys21/pdflib/issues).
- Never send PR to `main` unless you want to contribute to the development version of the client (`main` represents the next major version).

Thanks in advance for your contribution! ❤️

License
-------

[](#license)

MIT License. For more information, please see the [LICENSE](LICENSE.TXT) file.

###  Health Score

48

—

FairBetter than 93% of packages

Maintenance90

Actively maintained with recent releases

Popularity27

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 99.7% 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 ~88 days

Recently: every ~146 days

Total

8

Last Release

29d ago

Major Versions

0.9.0 → 1.0.02024-10-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/538261442076066694ae372b550e143e7b86d8171e6623abf9a11419d7299adc?d=identicon)[office@evosys21.com](/maintainers/office@evosys21.com)

---

Top Contributors

[![klodoma](https://avatars.githubusercontent.com/u/944350?v=4)](https://github.com/klodoma "klodoma (313 commits)")[![antman3351](https://avatars.githubusercontent.com/u/16060462?v=4)](https://github.com/antman3351 "antman3351 (1 commits)")

---

Tags

fpdffpdf-extensionmulticellphptabletcpdftcpdf-extensiontfpdf

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/evosys21-pdflib/health.svg)

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

###  Alternatives

[tarfin-labs/easy-pdf

Makes pdf processing easy.

1719.9k](/packages/tarfin-labs-easy-pdf)

PHPackages © 2026

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