Registry / utility / setasign-fpdf

setasign-fpdf

JSON →
library1.9.0phppackagistunverified

FPDF is a PHP class which allows to generate PDF files with pure PHP. F from FPDF stands for Free: you may use it for any kind of usage and modify it to suit your needs.

composer require setasign/fpdf
INSTALL
IMPORT
SIG · SETASIGN-FPDF
S
setasign-fpdf
utilityphpv1.9.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

FPDF
use FPDF;

Create a simple PDF with text.

require_once 'fpdf.php'; $pdf = new FPDF(); $pdf->AddPage(); $pdf->SetFont('Arial', 'B', 16); $pdf->Cell(40, 10, 'Hello World!'); $pdf->Output();
Debug
Known issues
gotchaFPDF does not use Composer autoloading by default; you must require the file manually or use a custom autoloader.
fix
Add 'require_once __DIR__ . '/vendor/setasign/fpdf/fpdf.php';' to your script.
affects: >=1.0.0
Upgrade
Version history
1.9.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Resources
setasign-fpdf — pip install setasign-fpdf · libregistry