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.2.0(11mo ago)41.7k↓45.8%2[1 issues](https://github.com/evosys21/pdflib/issues)1MITPHPPHP &gt;=8.0CI passing

Since Sep 25Pushed 11mo ago2 watchersCompare

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

READMEChangelog (6)Dependencies (10)Versions (9)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

36

—

LowBetter than 82% of packages

Maintenance45

Moderate activity, may be stable

Popularity26

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity50

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 ~48 days

Recently: every ~54 days

Total

6

Last Release

356d 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 (310 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

[phpoffice/phpspreadsheet

PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine

13.9k293.5M1.3k](/packages/phpoffice-phpspreadsheet)[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M102](/packages/spatie-browsershot)[smalot/pdfparser

Pdf parser library. Can read and extract information from pdf file.

2.7k34.5M216](/packages/smalot-pdfparser)[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.1k57.6M131](/packages/openspout-openspout)[keboola/csv

Keboola CSV reader and writer

1451.8M21](/packages/keboola-csv)

PHPackages © 2026

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