mazanax/fpdi_with_links

FPDI Driver with support of links functionality

v0.1 2019-12-05 11:34 UTC

This package is auto-updated.

Last update: 2024-04-19 15:39:05 UTC


README

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