Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 749 Bytes

README.MD

File metadata and controls

28 lines (23 loc) · 749 Bytes

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