fpdf17导入多个页面

时间:2016-09-21 07:54:18

标签: testing

Pleaaaase帮助我修复代码。我想导入第一页和第二页:

$pdf = new FPDI('P','mm','A4');

$pdf->SetTitle("test");

$pageCount = $pdf->setSourceFile($_SERVER['DOCUMENT_ROOT']."source.pdf");
$tplIdx = $pdf->importPage(1); 


$pdf->AddPage();
$pdf->useTemplate($tplIdx, 0, 0, 0);

$pdf->SetFont('Arial','',9);
$pdf->SetMargins(1,0,1,0);
$pdf->SetAutoPageBreak(margin,1)

shareeditundeleteflag

0 个答案:

没有答案