Xamarin.Forms

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

    Show / Hide Table of Contents

    Class DuplexMode

    The paper handling option to use when printing the file from the print dialog.

    Inheritance
    System.Object
    DuplexMode
    Namespace: Syncfusion.Pdf
    Assembly: Syncfusion.Pdf.Portable.dll
    Syntax
    public sealed class DuplexMode : 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.Duplex = DuplexMode.DuplexFlipShortEdge;
    //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.Duplex = DuplexMode.DuplexFlipShortEdge
    'Save the document.
    document.Save("Output.pdf")
    'Close the documents.
    document.Close(True)
    lDoc.Close(True)

    Fields

    DuplexFlipLongEdge

    Duplex and flip on the long edge of the sheet.

    Declaration
    public const DuplexMode DuplexFlipLongEdge
    Field Value
    Type Description
    DuplexMode

    DuplexFlipShortEdge

    Duplex and flip on the short edge of the sheet.

    Declaration
    public const DuplexMode DuplexFlipShortEdge
    Field Value
    Type Description
    DuplexMode

    None

    Default Value

    Declaration
    public const DuplexMode None
    Field Value
    Type Description
    DuplexMode

    Simplex

    Print single-sided.

    Declaration
    public const DuplexMode Simplex
    Field Value
    Type Description
    DuplexMode

    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