Enum PdfPageLayout
- Namespace
- Syncfusion.Pdf
- Assembly
- Syncfusion.Pdf.Portable.dll
A name object specifying the page layout to be used when the document is opened.
public enum PdfPageLayout
Fields
OneColumn = 1
Display the pages in one column.
SinglePage = 0
Default Value. 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
//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)