The paper handling option to use when printing the file from the print dialog.
// Create a new PDF document
let document : PdfDocument = new PdfDocument();
// Gets the viewer preferences of the document
let viewerPreferences : PdfViewerPreferences = document.viewerPreferences;
// Sets the duplex
viewerPreferences.duplex = DuplexMode.DuplexFlipLongEdge;
// Destroy the document
document.destroy();
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.