get_page_info method
get_page_info(page_index)
Gets the page size, orientation and other information about a page that might be useful for printing or rendering.
def get_page_info(self, page_index: int):
...
Parameter | Type | Description |
---|---|---|
page_index | int | The 0-based page index. |
Examples
Shows how to check whether the page is in color or not.
doc = aw.Document(file_name=MY_DIR + 'Document.docx')
# Check that the first page of the document is not colored.
self.assertFalse(doc.get_page_info(0).colored)
See Also
- module aspose.words
- class Document