Home - Stefanius67/XFPDF GitHub Wiki

Generate PDF documents with tables displaying data

XPDF sample

Dependency

this 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

Overview

This 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.