PdfPageLayout enumeration

PdfPageLayout enumeration

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

Members

NameDescription
SinglePageDisplay one page at a time.
OneColumnDisplay the pages in one column.
TwoColumnLeftDisplay the pages in two columns, with odd-numbered pages on the left.
TwoColumnRightDisplay the pages in two columns, with odd-numbered pages on the right.
TwoPageLeftDisplay the pages two at a time, with odd-numbered pages on the left.
TwoPageRightDisplay 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.

let doc = new aw.Document(base.myDir + "Big document.docx");

// Display the pages two at a time, with odd-numbered pages on the left.
let saveOptions = new aw.Saving.PdfSaveOptions();
saveOptions.pageLayout = aw.Saving.PdfPageLayout.TwoPageLeft;

doc.save(base.artifactsDir + "PdfSaveOptions.pageLayout.pdf", saveOptions);

See Also