PHPackages                             jheferson-br/tpdf - 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. jheferson-br/tpdf

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

jheferson-br/tpdf
=================

Lib em PHP para criação de arquivos PDF. Uso restrito para projetos Adianti

1.0.2(5y ago)11714mitPHP

Since Sep 16Pushed 5y ago1 watchersCompare

[ Source](https://github.com/JhefersonBR/TPDF)[ Packagist](https://packagist.org/packages/jheferson-br/tpdf)[ RSS](/packages/jheferson-br-tpdf/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (4)Used By (0)

Instalação
==========

[](#instalação)

```
composer require jheferson-br/tpdf
```

TPDF
----

[](#tpdf)

A classe **TPDF** é uma extensão da [FPDF](http://www.fpdf.org/ "FPDF"), classe Para geração de arquivos em PDF em **PHP**. E conta com alguns recursos a mais, como por exemplo o método **WriteHTML** que permite a escrita de texto com formatação via **HTML** extendendo assim o método **Write** da classe pai [FPDF](http://www.fpdf.org/ "FPDF"). Além disso com ela é possível criar cabeçalhos e rodapés nas paginas de forma simples Veja um exemplo de uso:

```
$unit = new SystemUnit($param['id']);
$pdf = new TPDF("P", 'mm', "A4");
$pdf->AliasNbPages();
$pdf->obj = $unit;

$pdf->header = function ($pd) {
	$pd->Image($pdf->obj->logo, 11, 12, 45, 15, '', '', true);
}

$pdf->footer = function ($pd) {
	$pd->SetFont('Arial', 'B', 14);
	$pd->Text(87,17,utf8_decode($pdf->obj->name));
}
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

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

Every ~7 days

Total

3

Last Release

2100d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/49538967?v=4)[Jheferson](/maintainers/Jheferson)[@jheferson](https://github.com/jheferson)

---

Top Contributors

[![JhefersonBR](https://avatars.githubusercontent.com/u/25249696?v=4)](https://github.com/JhefersonBR "JhefersonBR (6 commits)")

### Embed Badge

![Health badge](/badges/jheferson-br-tpdf/health.svg)

```
[![Health](https://phpackages.com/badges/jheferson-br-tpdf/health.svg)](https://phpackages.com/packages/jheferson-br-tpdf)
```

###  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)
