Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/274.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 使用FPDI导入裁剪区域_Php_Pdf_Fpdf_Fpdi - Fatal编程技术网

Php 使用FPDI导入裁剪区域

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=

我正在通过使用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=4; // ...and is 4cm wide
$h=5; // ...and 5cm in height
如何导入此特定区域