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 = Document(MY_DIR + "Big document.docx")

# Display the pages two at a time, with odd - numbered pages on the left.
save_options = PdfSaveOptions()
save_options.page_layout = PdfPageLayout.TWO_PAGE_LEFT

doc.save(ARTIFACTS_DIR + "PdfSaveOptions.PageLayout.pdf", save_options)

See Also