Class PdfPageLayout
A name object specifying the page layout to be used when the document is opened.
Inheritance
System.Object
PdfPageLayout
Namespace: Syncfusion.Pdf
Assembly: Syncfusion.Pdf.UWP.dll
Syntax
public sealed class PdfPageLayout : Enum
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
OneColumn
Display the pages in one column.
Declaration
public const PdfPageLayout OneColumn
Field Value
Type |
---|
PdfPageLayout |
SinglePage
Default Value. Display one page at a time.
Declaration
public const PdfPageLayout SinglePage
Field Value
Type |
---|
PdfPageLayout |
TwoColumnLeft
Display the pages in two columns, with odd numbered pages on the left.
Declaration
public const PdfPageLayout TwoColumnLeft
Field Value
Type |
---|
PdfPageLayout |
TwoColumnRight
Display the pages in two columns, with odd numbered pages on the right.
Declaration
public const PdfPageLayout TwoColumnRight
Field Value
Type |
---|
PdfPageLayout |
TwoPageLeft
Display the pages two at a time, with odd-numbered pages on the left
Declaration
public const PdfPageLayout TwoPageLeft
Field Value
Type |
---|
PdfPageLayout |
TwoPageRight
Display the pages two at a time, with odd-numbered pages on the right
Declaration
public const PdfPageLayout TwoPageRight
Field Value
Type |
---|
PdfPageLayout |