6.2.12 GPL (GNU General Public License)    
2.9/5 39
This is a very popular and handy PHP class that can be used for generating PDF files

editor's review





TCPDF is an open source PHP class, a library that can be integrated into other applications and made to generate PDF documents on-the-fly, without relying on external software projects. It also provides developers with a PHP class to extract data from existing PDF documents, as well as various PHP classes to generate 1D and 2D barcodes in different formats.

Features at a glance

Key features include support for all ISO page formats, UTF-8 Unicode fonts support, TrueType Unicode fonts support, TrueType fonts support, Type1 fonts support, OpenType Unicode fonts support,  OpenType v1 fonts support, CID-0 fonts support, custom page formats, margins and units of measure, methods for page header and footer management, automatic page break, page numbering, line break and text justification, JPEG and PNG images, colors, links, and page compression.

Additionally, the project includes a method to print various barcode formats and various methods that allows users to publish some XHTML code, supporting the h1, h2, h3, h4, h5, h6, b, u, i, a, img, p, br, strong, em, font, blockquote, li, ul, ol, hr, td, th, tr, table, sup, sub, and small elements. Support for Right-To-Left languages is also implemented.

Among other features, we can mention PDF/A-1b support, font subsetting, object and layers visibility, support for XOBject templates, the ability to delete or move pages from a PDF document,  automatic page grouping and numbering, no-write page regions, multiple columns mode, automatic footer management and page header, PDF annotations, text rendering modes, as well as support for bookmarks and text hyphenation, spacing and stretching.

Supports a wide range of image file formats

TCPDF also includes various methods to share different CSS and XHTML code, as well as forms and JavaScript code. It supports a wide range of image file formats, including JPG, JPEG, PNG, GIF, BMP, SVG, XPM, XBM, GD, GD2 and GD2PART. In addition, support for automatic page break, text alignments and line break is also implemented in this powerful and actively developed PHP library.

TCPDF was reviewed by Marius Nestor
Last updated on September 15th, 2015
TCPDF - First example with default Header and FooterTCPDF - Graphic transformations exampleTCPDF - WriteHTML() example

0 User reviews so far.