PageSetup
Overview
PageSetup is a class in Aspose.Words FOSS for Python.
Inherits from: BaseModel.
PageSetup.paper_size represents the predefined size of the page (e.g., A4, Letter).
Properties: bottom_margin, different_first_page_header_footer, footer_distance, gutter, header_distance, left_margin, and 12 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
paper_size | int | Read | Gets the paper size. |
orientation | int | Read | Gets the orientation. |
top_margin | float | Read | Gets the top margin. |
bottom_margin | float | Read | Gets the bottom margin. |
left_margin | float | Read | Gets the left margin. |
right_margin | float | Read | Gets the right margin. |
header_distance | float | Read | Gets the header distance. |
footer_distance | float | Read | Gets the footer distance. |
gutter | float | Read | Gets the gutter. |
page_width | float | Read | Gets the page width. |
page_height | float | Read | Gets the page height. |
page_number_style | int | Read | Gets the page number style. |
page_starting_number | int | Read | Gets the page starting number. |
restart_page_numbering | bool | Read | Gets the restart page numbering. |
section_start | int | Read | Gets the section start. |
different_first_page_header_footer | bool | Read | Gets the different first page header footer. |
odd_and_even_pages_header_footer | bool | Read | Gets the odd and even pages header footer. |
text_columns | Optional[TextColumns] | Read | Gets the text columns. |