PHP code example of mazanax / fpdi_with_links
1. Go to this page and download the library: Download mazanax/fpdi_with_links library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mazanax / fpdi_with_links example snippets
use MZ\FPDI\FPDIWithLinks;
// setup the autoload function
->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();