Duplex Printing

Printing on both sides of a sheet (duplex printing) can be done in two ways: by the use of the FRONT and BACK subcommand combination or by the use of the BOTH subcommand. If FRONT and BACK are chosen, the number of copies requested for each must be the same.

To demonstrate some of the functions available for duplex printing, assume you want to print a six-page data file (a simplified version is shown in the next figure).

Six-Page Formatted Data File

Six-Page Formatted Data File

Assume, too, that the file is already composed and formatted, so only a form definition is needed. The first form definition follows:

FORMDEF ABCD
        DUPLEX NORMAL ;
  OVERLAY AB ;
  SUBGROUP FRONT
           OVERLAY AB ;
  SUBGROUP BACK ;
In this command stream, form definition ABCD contains two subgroups, one specified with a FRONT subcommand and the other with a BACK subcommand.

By including a pair of FRONT and BACK subcommands within the copy group, you can specify that the front and back of printed sheets are to be controlled by different subgroups. The purpose of this is to allow modifications (overlays or suppressions, for example) to be separately specified for the front and back of sheets. The next figure shows the result of using this control where the front sheets have a header (OVERLAY AB) that the backs do not have.

Result of Using a Pair of FRONT and BACK Subgroups

Result of Using a Pair of FRONT and BACK Subgroups

The rules of the FRONT and BACK subcommands are: