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