PHP Classes

PHP PDF Table Generation: Generate tables in PDF documents from array data

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 332 All time: 7,127 This week: 488Up
Version License PHP version Categories
pdftable 1GNU General Publi...3.0PHP 5, Files and Folders, Text proces...


This class can generate tables in PDF documents from array data.

It extends the FPDF class to add functions to add tables to the current PDF document.

The tables are defined from bidimensional arrays that define the contents of each row and column of the table.

The tables may have additional properties set to define the colors of the headers, odd or even rows, the width of the cells, padding around the cells, and text alignment.

Innovation Award
PHP Programming Innovation award nominee
November 2015
Number 10

Prize: SourceGuarding PHP encoder tool
Sometimes you need to generate PDF documents that display data in tables.

This class extends the FPDF class to provide functions to quickly insert tables in a PDF document that you are generating.

Manuel Lemos
Picture of Luciano Salvino
  Performance   Level  
Name: Luciano Salvino <contact>
Classes: 11 packages by
Country: Argentina Argentina
Age: 51
All time rank: 134416 in Argentina Argentina
Week rank: 280 Up3 in Argentina Argentina Up
Innovation award
Innovation award
Nominee: 9x


  Files folder image Files  
File Role Description
Files folder imagefont (2 files)
Plain text file fpdf.php Class fpdf class
Plain text file genTable.php Class Create table on PDF

  Files folder image Files  /  font  
File Role Description
  Accessible without login Plain text file helvetica.php Aux. Font file for example
  Accessible without login Plain text file helveticab.php Aux. Font file for example

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:7,127
This week:488Up