Enum PdfPageLayout
A name object specifying the page layout to be used when the document is opened.
Namespace: Syncfusion.Pdf
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public enum PdfPageLayout
Examples
//Source document.
PdfLoadedDocument lDoc = new PdfLoadedDocument("input.pdf");
//Create a new document.
PdfDocument document = new PdfDocument();
//Appending the document with source document.
document.Append(lDoc);
//Set page layout.
document.ViewerPreferences.PageLayout = PdfPageLayout.TwoColumnRight;
//Save the document.
document.Save("Output.pdf");
//Close the documents.
document.Close(true);
lDoc.Close(true);
'Source document.
Dim lDoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf")
'Create a new document.
Dim document As PdfDocument = New PdfDocument()
'Appending the document with source document.
document.Append(lDoc)
'Set page layout.
document.ViewerPreferences.PageLayout = PdfPageLayout.TwoColumnRight
'Save the document.
document.Save("Output.pdf")
'Close the documents.
document.Close(True)
lDoc.Close(True)
Fields
Name | Description |
---|---|
OneColumn | Display the pages in one column. |
SinglePage | Default Value. Display one page at a time. |
TwoColumnLeft | Display the pages in two columns, with odd numbered pages on the left. |
TwoColumnRight | Display the pages in two columns, with odd numbered pages on the right. |
TwoPageLeft | Display the pages two at a time, with odd-numbered pages on the left |
TwoPageRight | Display the pages two at a time, with odd-numbered pages on the right |