Php 使用FPDI导入裁剪区域
我正在通过使用FPDI从现有PDF导入来创建一个新的PDF文件Php 使用FPDI导入裁剪区域,php,pdf,fpdf,fpdi,Php,Pdf,Fpdf,Fpdi,我正在通过使用FPDI从现有PDF导入来创建一个新的PDF文件 $pdf->AddPage(); $pdf->setSourceFile("original.pdf"); $tplIdx = $pdf->importPage(1); 如何将现有PDF中的特定区域导入到正在创建的新PDF中 我有变量,例如: $x=5; //My desired box begins 5cm from the left $y=4; // ...and 4cm from the top $w=
$pdf->AddPage();
$pdf->setSourceFile("original.pdf");
$tplIdx = $pdf->importPage(1);
如何将现有PDF中的特定区域导入到正在创建的新PDF中
我有变量,例如:
$x=5; //My desired box begins 5cm from the left
$y=4; // ...and 4cm from the top
$w=4; // ...and is 4cm wide
$h=5; // ...and 5cm in height
如何导入此特定区域