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
この特定の領域をインポートするにはどうすればよいですか?