Enum PdfPageLayout
Enum PdfPageLayout
Namespace: Aspose.Words.Saving
Assembly: Aspose.Words.dll (26.2.0)
Specifies the page layout to be used when the document is opened in a PDF reader.
public enum PdfPageLayoutFields
OneColumn = 1
Display the pages in one column.
SinglePage = 0
Display one page at a time.
TwoColumnLeft = 2
Display the pages in two columns, with odd-numbered pages on the left.
TwoColumnRight = 3
Display the pages in two columns, with odd-numbered pages on the right.
TwoPageLeft = 4
Display the pages two at a time, with odd-numbered pages on the left.
TwoPageRight = 5
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.
Document doc = new Document(MyDir + "Big document.docx");
// Display the pages two at a time, with odd-numbered pages on the left.
PdfSaveOptions saveOptions = new PdfSaveOptions();
saveOptions.PageLayout = PdfPageLayout.TwoPageLeft;
doc.Save(ArtifactsDir + "PdfSaveOptions.PageLayout.pdf", saveOptions);