Insert an Empty Page at End of PDF File in Python
Contents
[
Hide
]
To Insert an Empty Page at the end of PDF document using Aspose.PDF Java for Python, simply invoke InsertEmptyPageAtEndOfFile class.
pdf_document = self.Document()
pdf_document=self.dataDir + 'input1.pdf'
# insert a empty page in a PDF
pdf_document.getPages().add();
# Save the concatenated output file (the target document)
pdf_document.save(self.dataDir + "output.pdf")
print "Empty page added successfully!"
Download Running Code
Download Insert an Empty Page at End of PDF File (Aspose.PDF) from any of the below mentioned social coding sites: