mazanax / fpdi_with_links
FPDI Driver with support of links functionality
v0.1
2019-12-05 11:34 UTC
Requires
- php: >=7.1
- setasign/fpdi: v2.2.0
- tecnickcom/tcpdf: ~6.2
Requires (Dev)
- roave/security-advisories: dev-master
This package is auto-updated.
Last update: 2024-10-19 16:44:15 UTC
README
FPDIWithLinks
FPDI Driver supports links annotations
Installation
composer require mazanax/fpdi_with_links
Example (from Setasign/FPDI)
<?php use MZ\FPDI\FPDIWithLinks; // setup the autoload function require __DIR__ . '/vendor/autoload.php'; // initiate FPDI $pdf = new FPDIWithLinks(); // add a page $pdf->AddPage(); // set the source file $pdf->setSourceFile('Fantastic-Speaker.pdf'); // import page 1 $tplId = $pdf->importPage(1); // use the imported page and place it at point 10,10 with a width of 100 mm $pdf->useTemplate($tplId, 10, 10, 100); $pdf->Output();