PdfPageLayout enumeration
PdfPageLayout enumeration
Specifies the page layout to be used when the document is opened in a PDF reader.
Members
Name | Description |
---|---|
SINGLE_PAGE | Display one page at a time. |
ONE_COLUMN | Display the pages in one column. |
TWO_COLUMN_LEFT | Display the pages in two columns, with odd-numbered pages on the left. |
TWO_COLUMN_RIGHT | Display the pages in two columns, with odd-numbered pages on the right. |
TWO_PAGE_LEFT | Display the pages two at a time, with odd-numbered pages on the left. |
TWO_PAGE_RIGHT | Display 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
- module aspose.words.saving