Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PdfPageLayout

    Show / Hide Table of Contents

    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.Portable.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 Description
    PdfPageLayout

    SinglePage

    Default Value. Display one page at a time.

    Declaration
    public const PdfPageLayout SinglePage
    Field Value
    Type Description
    PdfPageLayout

    TwoColumnLeft

    Display the pages in two columns, with odd numbered pages on the left.

    Declaration
    public const PdfPageLayout TwoColumnLeft
    Field Value
    Type Description
    PdfPageLayout

    TwoColumnRight

    Display the pages in two columns, with odd numbered pages on the right.

    Declaration
    public const PdfPageLayout TwoColumnRight
    Field Value
    Type Description
    PdfPageLayout

    TwoPageLeft

    Display the pages two at a time, with odd-numbered pages on the left

    Declaration
    public const PdfPageLayout TwoPageLeft
    Field Value
    Type Description
    PdfPageLayout

    TwoPageRight

    Display the pages two at a time, with odd-numbered pages on the right

    Declaration
    public const PdfPageLayout TwoPageRight
    Field Value
    Type Description
    PdfPageLayout

    value__

    Declaration
    public int value__
    Field Value
    Type Description
    System.Int32

    See Also

    PdfLoadedDocument
    PdfDocument
    PdfViewerPreferences
    PdfPage
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved