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 today

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 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

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

2046d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a7ca938fab2b2a4751c1511efd8b749ebba0408ac17460ddc84072a2a3614a56?d=identicon)[Jheferson](/maintainers/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

[phpoffice/phpspreadsheet

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

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

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M100](/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.6M128](/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)
