FPDF

Tim Barsness
March 15, 2010

I’m considering using FPDF as a solution to creating PDF’s on Debian since FDFlib isn’t installed. It isn’t as efficient as the native PDFlib, but apparently is sufficient for most things. I’m impressed so far.

If interested, this is actually installable through apt, though I’ll probably just include it on a per application basis. It makes applications more portable.

Here’s some sample code from the FPDF website.

require('fpdf.php');

$pdf=new FPDF();
$pdf->AddPage();
$pdf->SetFont('Arial','B',16);
$pdf->Cell(40,10,'Hello World!');
$pdf->Output();
Solutions Architecture

browse through our blog articles

Blog Archive