pageLayout property

PdfSaveOptions.pageLayout property

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

get pageLayout(): Aspose.Words.Saving.PdfPageLayout

Remarks

The default value is PdfPageLayout.SinglePage.

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