menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Enum DuplexMode - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Enum DuplexMode

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

    Namespace: Syncfusion.Pdf
    Assembly: Syncfusion.Pdf.Base.dll
    Syntax
    public enum DuplexMode
    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

    Name Description
    DuplexFlipLongEdge

    Duplex and flip on the long edge of the sheet.

    DuplexFlipShortEdge

    Duplex and flip on the short edge of the sheet.

    None

    Default Value

    Simplex

    Print single-sided.

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