Enum DuplexMode
- Namespace
- Syncfusion.Pdf
- Assembly
- Syncfusion.Pdf.Portable.dll
The paper handling option to use when printing the file from the print dialog.
public enum DuplexMode
Fields
DuplexFlipLongEdge = 2
Duplex and flip on the long edge of the sheet.
DuplexFlipShortEdge = 1
Duplex and flip on the short edge of the sheet.
None = 3
Default Value
Simplex = 0
Print single-sided.
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)