Extensions for the FPDI and FPDF libraries

dev-master 2015-05-09 10:18 UTC

This package is auto-updated.

Last update: 2023-11-13 19:04:29 UTC


Extensions for the FPDI and FPDF libraries with methods for convenience and quicker templating.


You can install FPDI Extended with Composer. Add the following to the require key of your composer.json file:

"m1ke/fpdi-ext": "dev-master"


Written by Mike Lehan and Ground Control Skydiving.


$users=[ ['name'=>'Ben'], ['name'=>'Hero'], ['name'=>'Human'] ];

$pdf = FPDIExt::template(__DIR__.'/files/email.pdf')->SetFont('FreeSans','',22);

foreach ($users as $user){
	$pdf->add_page_template()->block_text($user['name'], 75, 50);


The extra draw_grid function lets you print a grid as described here. The intention is that you'd use this once to work out where to hard code your content markers during development.