mazanax/fpdi_with_links

支持链接功能的FPDI驱动

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

This package is auto-updated.

Last update: 2024-09-19 16:33:18 UTC


README

Minimum PHP Version

FPDIWithLinks

FPDI驱动支持链接注释

安装

composer require mazanax/fpdi_with_links

示例(来自 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();