Generate invoice PDFs from a PHP web application without any external programs.
Create PDF reports with tables, images, and barcodes in an existing PHP project.
Maintain a legacy PHP application that already uses TCPDF without migrating immediately.
Deprecated, new projects should use tc-lib-pdf instead.
TCPDF is a PHP library that lets developers create PDF files directly from their code, without any external programs or system dependencies beyond PHP itself. It has been available for many years and is used across a wide range of PHP-based websites and applications. A developer adds it to a project and then calls its functions to build up a PDF document page by page, adding text, images, tables, and graphics. The feature set is broad. It handles international text including right-to-left scripts like Arabic and Hebrew, supports many font formats, can render a subset of HTML and CSS into PDF layout, and generates barcodes including QR codes. It also covers more specialized needs like PDF encryption, digital signatures, PDF/A output for archiving, annotations, and fillable forms. Importantly, TCPDF is now marked as deprecated. The author has stopped adding new features to it and only keeps it in maintenance mode for critical fixes. New projects are directed to a successor library called tc-lib-pdf, which is built with a more modern code structure. Teams already using TCPDF in production are advised to keep it for now and migrate gradually, since switching requires testing to make sure PDFs render identically. The library is released under the GNU Lesser General Public License v3, which permits use in both open-source and commercial projects as long as modifications to the library itself are shared back. It requires PHP 7.1 or later and optionally uses a few common PHP extensions for richer image handling. If you are starting a new PHP project that needs to generate PDFs, the README explicitly recommends using the newer tc-lib-pdf package instead of this one. TCPDF remains available mainly to support existing systems that already depend on it.
← tecnickcom on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.