PHP PDF Templates and PDF Importing
FPDF-TPL
FPDF-TPL∞ extends TCPDF to provide PDF forms / templates
FPDI
FPDI∞ extends TCPDF to provide PDF page importing
Example
<?php
include_once 'tcpdf/tcpdf.php';
include_once 'fpdf/fpdi2tcpdf_bridge.php';
include_once 'fpdf/fpdf_tpl.php';
include_once 'fpdf/fpdi.php';
function inc
($pdf,
$file)
{
static $x ,
$y;
$pc =
$pdf->
setSourceFile("$file.pdf");
$pg =
$pdf->
importPage(1,
'/MediaBox');
$pdf->
useTemplate($pg,
$x,
$y);
$x+=
30;
$y+=
30;
}
$pdf =
new FPDI
();
$pdf->
addPage();
for ($i=
1 ;
$i <=
6 ;
$i++
)
{
inc
($pdf,
$i);
}
$pdf->
Output('pdf.pdf',
'I');
?>
REFERRERS
TCPDF
There are no comments on this page. [Add comment]