Registry / utility / setasign-fpdi

setasign-fpdi

JSON →
library2.6.8phppackagistunverified

FPDI is a collection of PHP classes facilitating developers to read pages from existing PDF documents and use them as templates in FPDF.

composer require setasign/fpdi
INSTALL
IMPORT
SIG · SETASIGN-FPDI
S
setasign-fpdi
utilityphpv2.6.8
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.

Fpdi
use setasign\Fpdi\Fpdi;

Import a page from an existing PDF and use it as a template.

use setasign\Fpdi\Fpdi; $pdf = new Fpdi(); $pdf->AddPage(); $pdf->setSourceFile('template.pdf'); $tplIdx = $pdf->importPage(1); $pdf->useTemplate($tplIdx); $pdf->Output();
Debug
Known issues
gotchaFPDI requires either FPDF or TCPDF to be installed; it does not include a PDF generation engine itself.
fix
Install one of the suggested packages: fpdf/fpdf or tecnickcom/tcpdf.
affects: >=2.0.0
Upgrade
Version history
2.6.8latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Resources