TCPDF explained
TCPDF is a free and open source software PHP class for generating PDF documents. TCPDF is the only PHP-based library that includes complete support for UTF-8 Unicode and right-to-left languages, including the bidirectional algorithm.[1]
In 2009 TCPDF was one of the most active of over 200,000 projects hosted on SourceForge (best ranked 6th on 3 April 2010).[2]
TCPDF is also one of the most used PHP libraries in the world, due to it being already included in the most popular PHP-based CMS and applications, including:Joomla! 1.5,Drupal,[3] Moodle,[4] phpMyAdmin,[5] Xoops,[6] Elxis CMS][7] ImpressCMS,[8] Jelix,[9] SugarCRM,[10] Symfony,[11] TYPO3,[12] Vtiger CRM,[13] Yii Framework,[14] CMS Made Simple,[15] DaDaBIK[16] and many others.
Html2Pdf PHP script by Laurent Minguet is based on TCPDF v5.0.002. This library allows generating PDF documents specified via a subset of html without learning underlying TCPDF api.
The TCPDF class was originally derived in 2002 from the public domain FPDF class written by Olivier Plathey but now has been almost entirely rewritten and hundreds of new features added.
Features
- no external libraries are required for the basic functions;
- all standard page formats, custom page formats, custom margins and units of measure;
- UTF-8 Unicode and right-to-left languages;
- TrueTypeUnicode, OpenTypeUnicode, TrueType, OpenType, Type 1 and CID-0 fonts;
- font subsetting;
- methods to publish some XHTML + CSS code, JavaScript and Forms;
- images, graphic (geometric figures) and transformation methods;
- supports JPEG, PNG and SVG images natively, all images supported by GD Graphics Library and all images supported via ImageMagick.
- 1D and 2D barcodes: 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, Datamatrix, QRcode, PDF417;
- ICC profiles, Grayscale, RGB, CMYK, Spot Colors and Transparencies;
- automatic page header and footer management;
- document encryption up to 256 bit and digital signature certification;
- transactions to UNDO commands;
- PDF annotations, including hyperlinks, text and file attachments;
- text rendering modes (fill, stroke and clipping);
- multiple columns mode;
- no-write page regions;
- bookmarks and table of content;
- text hyphenation;
- text stretching and spacing (tracking/kerning);
- automatic page break, line break and text alignments including justification;
- automatic page numbering and page groups;
- move and delete pages;
- page compression (requires php-zlib extension);
- XOBject templates;
- PDF/A-1b (ISO 19005-1:2005) support.
External links
Notes and References
- https://tcpdf.org/ TCPDF official website
- Web site: SourceForge.net Update: 2009-03-31 Edition - Statistics and Top Projects . 2009-07-22 . https://web.archive.org/web/20090830121838/http://sourceforge.net/apps/wordpress/sourceforge/2009/04/01/sourceforgenet-update-2009-03-31-edition/ . 2009-08-30 . dead .
- http://drupal.org/project/pdfview Drupal Pdfview module recommends TCPDF as a third-party tool to use
- http://cvs.moodle.org/moodle/lib/tcpdf/ Moodle Index of /moodle/lib/tcpdf
- http://www.phpmyadmin.net/phpdoc/com-tecnick-tcpdf/TCPDF.html phpMyAdmin docs for TCPDF
- http://www.xoops.org/modules/news/article.php?storyid=4558 A module for creating articles in Xoops
- http://code.elxis.org/20080/nav.html?includes/tcpdf/index.html Elxis TCPDF Module
- http://wiki.impresscms.org/index.php?title=ImpressCMS_1.1_New_Features ImpressCMS 1.1 New Features
- http://jelix.org/articles/en/changelog/1.0 JELIX changelog
- Web site: TCPDF module for SugarCRM . 2009-07-22 . https://web.archive.org/web/20090402142450/http://www.sugarforge.org/projects/tcpdf . 2009-04-02 . dead .
- http://www.symfony-project.org/plugins/sfTCPDFPlugin TCPDF plugin for symfony
- http://typo3.org/documentation/document-library/extension-manuals/tcpdf/current/?cHash=29a8e4f992&no_cache=1&sword_list TCPDF module for TYPO3
- http://trac.vtiger.com/cgi-bin/trac.cgi/browser/vtigercrm/branches/5.0.4/include/tcpdf?rev=11812 TCPDF module on vtiger
- http://www.yiiframework.com/extension/tcpdf/ TCPDF extension for Yii
- http://blog.cmsmadesimple.org/2008/08/03/announcing-cms-made-simple-14-jamaica/ Announcing CMS Made Simple 1.4 "Jamaica" with TCPDF
- https://dadabik.com/index.php?function=show_post_details&ID_message=98 PDF print feature is available, DaDaBIK's blog post