DUPLEX

Specifies whether to use duplex printing if available on the device.
Used by: GOPTIONS statement, OPTIONS statement
Default: NODUPLEX
Restriction: duplex printers only
See: BINDING

GSFMODE

PPDFILE

Options Used in Both GOPTIONS and OPTIONS Statements

Syntax

DUPLEX | NODUPLEX

Comparisons

When DUPLEX is on, the driver sets up the printer for duplex operation. Before producing the first graph, set GSFMODE=REPLACE in the GOPTIONS statement, and DUPLEX on an OPTIONS or GOPTIONS statement. You can also use the BINDING= option in conjunction with DUPLEX. Before producing the second graph, set GSFMODE=APPEND in the GOPTIONS statement so that the driver knows to place succeeding graphs on the next available side of paper.
If DUPLEX is in effect, the page's inside (binding) margin is set equal to the current HORIGIN setting, and the outside margin is set equal to
XMAX − HSIZE − HORIGIN
In terms of even- and odd-numbered pages, this means the following:
odd-numbered pages
HORIGIN determines the left margin, and XMAX-HSIZE-HORIGIN determines the right margin
even-numbered pages
XMAX-HSIZE-HORIGIN determines the left margin, and HORIGIN determines the right margin
For PostScript printers, if you do not use the PPDFILE= option to specify a PPD (PostScript Printer Description) file, a generic PostScript Level 1 duplex command is added to the driver output. If PPDFILE= is used, the duplex command is obtained from the PPD file.