PHP での PDF ファイルへの空白ページの挿入
Contents
[
Hide
]
Aspose.PDF - 空白ページの挿入
Aspose.PDF Java for PHP を使用して PDF 文書に空白ページを挿入するには、InsertEmptyPage クラスを呼び出してください。
PHPコード
# Open the target document
$pdf = new Document($dataDir . 'input1.pdf');
# insert a empty page in a PDF
$pdf->getPages()->insert(1);
# Save the concatenated output file (the target document)
$pdf->save($dataDir . "output.pdf");
print "Empty page added successfully!";
実行コードをダウンロード
以下に記載されたソーシャルコーディングサイトのいずれかから、空ページの挿入 (Aspose.PDF) をダウンロードしてください。