The Full Wiki

More info on TCPDF

TCPDF: Wikis


Note: Many of our articles have direct quotes from sources you can cite, within the Wikipedia article! This article doesn't yet, but we're working on it! See more info or our list of citable articles.


From Wikipedia, the free encyclopedia

Tecnick com tcpdf logo.png
Original author(s) Nicola Asuni
Initial release 2005-01-06
Stable release 4.8.014 / 2009-11-04
Written in PHP
Operating system Cross-platform
Type Software Library
License LGPL

TCPDF is a popular Free and open source software PHP class for generating PDF documents. TCPDF is currently the only PHP-based library that includes complete support for UTF-8 Unicode and Right-To-Left languages, including the Bidirectional algorithm[1].

TCPDF is one of the most active project over more than 180,000 projects hosted on the SourceForge repository[2] (best ranked 12th on 18 Apr 2009).

TCPDF is also one of the most used PHP libraries of the world, because it is already included on the most popular PHP-based CMS and applications, including: Joomla[3], Drupal[4], Moodle[5], phpMyAdmin[6], TCExam[7], Xoops[8], Elxis CMS[9], ImpressCMS[10], JELIX Frameweork PHP5[11], SugarCRM[12], Symfony[13], TYPO3[14], Vtiger CRM[15], Yii Framework[16], CMS Made Simple[17], and many others.

The TCPDF class was originally derived in 2002 from the public domain FPDF class by Olivier Plathey but now has been almost entirely rewritten and hundreds of new features added[18].


No external libraries are required for the basic functions.

  • supports all ISO page formats;
  • supports custom page formats, margins and units of measure;
  • supports UTF-8 Unicode and Right-To-Left languages;
  • supports TrueTypeUnicode, OpenTypeUnicode, TrueType, OpenType, Type1 and CID-0 fonts;
  • supports document encryption;
  • includes methods to publish some XHTML code;
  • includes graphic (geometric) and transformation methods;
  • includes Javascript and forms support;
  • includes a method to print various barcode formats: CODE 39, ANSI MH10.8M-1983, USD-3, 3 of 9, CODE 93, USS-93, Standard 2 of 5, Interleaved 2 of 5, CODE 128 A/B/C, 2 and 5 Digits UPC-Based Extension, EAN 8, EAN 13, UPC-A, UPC-E, MSI, POSTNET, PLANET, RMS4CC (Royal Mail 4-state Customer Code), CBC (Customer Bar Code), KIX (Klant index - Customer index), Intelligent Mail Barcode, OneCode, USPS-B-3200, CODABAR, CODE 11, PHARMACODE, PHARMACODE TWO-TRACKS;
  • includes methods to set Bookmarks and print a Table of Content;
  • includes a method to move pages;
  • includes methods for automatic page header and footer management;
  • supports automatic page break;
  • supports automatic page numbering and page groups;
  • supports automatic line break and text justification;
  • supports JPEG and PNG images natively, all images supported by GD (GD, GD2, GD2PART, GIF, JPEG, PNG, BMP, XBM, XPM) and all images supported via ImageMagick;
  • supports stroke and clipping mode for text;
  • supports clipping masks;
  • supports Grayscale, RGB, CMYK, Spot Colors and Transparencies;
  • supports several annotations, including links, text and file attachments;
  • supports page compression (requires zlib extension);
  • supports text hyphenation;
  • supports transactions to UNDO commands.


External links



Got something to say? Make a comment.
Your name
Your email address