Work with PDF Pages in Python
Contents
[
Hide
]
Use this section when you need to perform page-level PDF operations in Python.
With Aspose.PDF for Python via .NET, you can insert, delete, move, extract, rotate, resize, and crop pages, then apply headers, footers, page numbers, watermarks, and stamps for layout and review workflows.
Page Tasks Covered
The following tasks are covered:
- Adding Pages - insert pages at specific positions or append pages to the end of a document.
- Moving Pages - move pages within a document or between documents.
- Deleting Pages - remove pages from a PDF document.
- Extracting Pages - extract selected pages into a new PDF file.
- Rotating Pages - change page orientation in an existing PDF file.
- Changing Page Size - resize page dimensions in a PDF document.
- Adding Headers and Footers - add repeating text, images, or structured header/footer content.
- Cropping PDF Pages - crop page content using page geometry settings.
- Getting and Setting Page Properties - access and modify various properties of PDF pages, such as size, rotation, and color attributes.
- Stamping - apply text, image, page, and page-number stamps to PDF pages.