Skip to content

mazanax/fpdi_with_links

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimum PHP Version

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();