Remove PDF Bates Numbering in Python
Contents
[
Hide
]
Remove Bates numbering from all pages of a PDF in Python.
Delete Bates numbering
Pass the document’s pages to PageCollectionExtensions.delete_bates_numbering and save the PDF.
import aspose.pdf as ap
def delete_bates_numbering(infile, outfile):
"""Delete Bates numbering from a PDF document."""
with ap.Document(infile) as document:
ap.PageCollectionExtensions.delete_bates_numbering(document.pages)
document.save(outfile)