PHPackages                             progdog-ru/tfpdf - 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. progdog-ru/tfpdf

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

progdog-ru/tfpdf
================

This class is a modified version of FPDF that adds UTF-8 support. Moreover, it embeds only the necessary parts of the fonts that are used in the document, making the file size much smaller than if the whole fonts were embedded.

1.33.2(4y ago)036LGPL-2.1PHP

Since Oct 1Pushed 4y ago1 watchersCompare

[ Source](https://github.com/progdog-ru/tfpdf)[ Packagist](https://packagist.org/packages/progdog-ru/tfpdf)[ Docs](http://www.fpdf.org/en/script/script92.php)[ RSS](/packages/progdog-ru-tfpdf/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)DependenciesVersions (6)Used By (0)

tfpdf
=====

[](#tfpdf)

tFPDF accepts UTF-8 encoded text. It embeds font subsets allowing small PDF files.

It requires a folder 'unifont' as a subfolder of the 'font' folder.

You should make the 'unifont' folder writeable (CHMOD 755 or 644). Although this is not essential, it allows caching of the font metrics the first time a font is used, making subsequent uses much faster.

All tFPDF requires is a .ttf TrueType font file. The file should be placed in the 'unifont' directory. Optionally, you can also define the path to your system fonts e.g. 'C:\\Windows\\Font' (see the example ex.php file) and reference TrueType fonts in this directory.

Pass a fourth parameter as true when calling AddFont(), and use utf-8 encoded text when using Write() etc.

tFPDF
=====

[](#tfpdf-1)

Informations
------------

[](#informations)

Original author: Ian Back Maintainer : [Tycho Veltmeijer](mailto:tfpdf@tychoveltmeijer.nl?subject=tFPDF)License: LGPL

Description
-----------

[](#description)

This class is a modified version of FPDF that adds UTF-8 support. Moreover, it embeds only the necessary parts of the fonts that are used in the document, making the file size much smaller than if the whole fonts were embedded. These features were originally developed for the [mPDF](https://mpdf.github.io/) project.

To use a Unicode font in your script, pass the font file name as third parameter of `AddFont()` and `true` as fourth parameter. The font may be located either in the font/unifont directory or directly in the system font folder (in case the `_SYSTEM_TTFONTS` constant is defined). The package ships with the [DejaVu](https://dejavu-fonts.github.io/)font family.

**Note:** this class requires the mbstring extension.

[source code for this repo](http://www.fpdf.org/en/script/script92.php)

[fpdf github repo](https://github.com/progdog-ru/fpdf)

[progdog.ru](https://progdog.ru)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Total

5

Last Release

1625d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/64d9a26fbe4917f65cc98acb1341c3483c0c446c67e3fdc2a553132444344164?d=identicon)[progdog-ru](/maintainers/progdog-ru)

---

Top Contributors

[![progdog-ru](https://avatars.githubusercontent.com/u/68942249?v=4)](https://github.com/progdog-ru "progdog-ru (6 commits)")

---

Tags

pdfunicodefpdftfpdf

### Embed Badge

![Health badge](/badges/progdog-ru-tfpdf/health.svg)

```
[![Health](https://phpackages.com/badges/progdog-ru-tfpdf/health.svg)](https://phpackages.com/packages/progdog-ru-tfpdf)
```

###  Alternatives

[setasign/fpdi

FPDI is a collection of PHP classes facilitating developers to read pages from existing PDF documents and use them as templates in FPDF. Because it is also possible to use FPDI with TCPDF, there are no fixed dependencies defined. Please see suggestions for packages which evaluates the dependencies automatically.

1.2k142.4M231](/packages/setasign-fpdi)[setasign/fpdf

FPDF is a PHP class which allows to generate PDF files with pure PHP. F from FPDF stands for Free: you may use it for any kind of usage and modify it to suit your needs.

77263.8M227](/packages/setasign-fpdf)[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)[tmw/fpdm

PDF form filling using FPDM Class written by FPDF author Olivier

129623.6k3](/packages/tmw-fpdm)[fpdf/fpdf

FPDF Composer Wrapper

512.7M22](/packages/fpdf-fpdf)[setasign/fpdi-protection

A FPDI compatible version of the FPDF\_Protection script.

324.3M2](/packages/setasign-fpdi-protection)

PHPackages © 2026

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