PdfPageLayout

PdfPageLayout enumeration

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

public enum PdfPageLayout

Values

NameValueDescription
SinglePage0Display one page at a time.
OneColumn1Display the pages in one column.
TwoColumnLeft2Display the pages in two columns, with odd-numbered pages on the left.
TwoColumnRight3Display the pages in two columns, with odd-numbered pages on the right.
TwoPageLeft4Display the pages two at a time, with odd-numbered pages on the left.
TwoPageRight5Display 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);

See Also