From the Acrobat JavaScript reference manual:
print
Prints all or a specific number of pages of the document.
Beginning wtih Acrobat 6.0, the method can print the document using the settings contained in a printParams Object, rather than through the other parameters. The
permanent print settings are not altered.
NOTES: (Security, version 6.0) When printing to a file,
the path must be a Safe Path. The print method will not overwrite an existing file On a Windows platform, the file name must include an extension of .ps or .prn (case insensitive). Additionally, the print method will not create a file directly in the root directory, the windows directory, or the windows system directory.
An InvalidArgsError (see the Error Objects) exception will be thrown and print wiill fail if any of the above security restrictions are not met.
Parameters
bUI (optional)
If true (the default), will cause a UI to be presented to
the user to obtain printing information and confirm the action.
nStart (optional
A 0-based index that defines the start of an inclusive
range of pages. If nStart and nEnd are not specified, prints all pages in the document. If only nStart is specified then the range of pages is the single page specified by nStart.
If nStart and nEnd parameters are used, bUI must be false.
nEnd (optional)
A 0-based index that defines the end of an inclusive range of page. If nStart and nEnd are not specified, prints all pages in the document. If only nEnd is specified then the range of a pages is 0 to nEnd. If nStart and nEnd parameters are used, bUI must be false.
bSilent (optional)
If true, suppresses the cancel dialog box while the document is printing. The default is false
bShrinkToFit (optional, version 5.0)
If true, the page is shrunk (if necessary) to fit within the imageable area of the printed page. If false, it is not. The default is false.
bPrintAsImage (optional, version 5.0)
If true, print pages as an image. The default is false.
bReverse (optional, version 5.0)
If true, print from nEnd to nStart. The default is false.
bAnnotations (optional, version 5.0)
If true (the default), annotations are printed.
printParams (optional, version 6.0)
The printParams Object containing the settings to use for printing. If this parameter is passed, any other parameters are ignored.
Example:
Code:
this.print(false, this.pageNum, this.pageNum);
// print a file silently
this.print({bUI: false, bSilent: true, bShrinkToFit: true});
Sorry, I don't see anything in there regarding "Duplex" printing.
Thomas D. Greer
Providing PostScript & PDF
Training, Development & Consulting