PdfPageLayout enumeration

PdfPageLayout enumeration

Specifies the page layout to be used when the document is opened in a PDF reader.

Members

NameDescription
SINGLE_PAGEDisplay one page at a time.
ONE_COLUMNDisplay the pages in one column.
TWO_COLUMN_LEFTDisplay the pages in two columns, with odd-numbered pages on the left.
TWO_COLUMN_RIGHTDisplay the pages in two columns, with odd-numbered pages on the right.
TWO_PAGE_LEFTDisplay the pages two at a time, with odd-numbered pages on the left.
TWO_PAGE_RIGHTDisplay the pages two at a time, with odd-numbered pages on the right.

Examples

Shows how to display pages when opened in a PDF reader.

doc = aw.Document(file_name=MY_DIR + 'Big document.docx')
# Display the pages two at a time, with odd-numbered pages on the left.
save_options = aw.saving.PdfSaveOptions()
save_options.page_layout = aw.saving.PdfPageLayout.TWO_PAGE_LEFT
doc.save(file_name=ARTIFACTS_DIR + 'PdfSaveOptions.PageLayout.pdf', save_options=save_options)

See Also