Recommend this page to a friend! |
Classes of Stefan Kientzler | PHP PDF Table using FPDF | readme.md | Download |
|
DownloadGenerate PDF documents with tables displaying dataDependencythis package contains a modified version of FPDF (based on Version 1.82 from 2019-12-07) with following changes: - PHP 7.4 typehinting - integrated the bookmark extension from http://www.fpdf.org/ - phpDoc comments (content from the FPDF-Manual at http://www.fpdf.org/) - PSR coding style (camel case methods, spacing, indentation, brackets) - namespace for PSR-4 autoloading - some fixes according to phpStan/scrutinizer inspections OverviewThis class can generate PDF reports with tables displaying data. It is an extension of the FPDF that takes arrays with data to display on the rows of a table and then it can generate a PDF document that displays the table on a page. The class allows to configure the orientation of the table on the page. Other attributes can be set using functions of the FPDF base class. In addition to extensive column definitions such as - Date values - Currency information - formatted numerical values - graphic symbols the package offers the possibility to automatically insert totals, subtotals and page transfers. UsageSee the blog post here for detailed description. History2020-03-06 Version 1.00* initial Version 2020-03-24 Version 1.0.1* added functions for total, subtotals and carryover * added formating for currency, number and datetime * fixed some problems with euro-sign and german umlauts
2020-04-21 Version 1.0.2* Integrated extension to set bookmarks from O.Plathey * Added new functions to set internal links within the datagrid 2020-11-23 Version 1.1.0* Moved XPDFFont into a separate file to correspond to PSR-0 / PSR-4 (one file per class) * Set namespace to fit PSR-4 recommendations for autoloading. * Added missing PHP 7.4 type hints / docBlock changes * Support of image columns * Added separate font for subject in page header (2'nd line) * customizeable Height of the header logo |