2017 © Pedro Peláez
 

library fpdi-ext

Extensions for the FPDI and FPDF libraries

image

m1ke/fpdi-ext

Extensions for the FPDI and FPDF libraries

  • Saturday, May 9, 2015
  • by m1ke
  • Repository
  • 1 Watchers
  • 2 Stars
  • 88 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

FPDI Extended

Extensions for the FPDI and FPDF libraries with methods for convenience and quicker templating., (*1)

Install

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

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

Authors

Written by Mike Lehan and Ground Control Skydiving., (*3)

Example

$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);
}

$pdf->output_inline('file.pdf');

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., (*4)

The Versions

09/05 2015

dev-master

9999999-dev

Extensions for the FPDI and FPDF libraries

  Sources   Download

MIT

The Requires

 

09/05 2015

dev-x1.0

dev-x1.0

Extensions for the FPDI and FPDF libraries

  Sources   Download

MIT

The Requires