Previous  Next          Contents  Index  Navigation  Glossary  Library

Postscript Printing in UNIX

You can convert your report output files into postscript format when printing in some UNIX environments by using the enscript UNIX utility.

Attention: Refer to your UNIX documentation before using enscript. Usage and the arguments employed by enscript may be specific to your platform.

Concurrent Manager Arguments

The concurrent manager can supply four different values as arguments to an operating system print command or custom print program. See the example of using all four values provided by the concurrent manager. See: Passing Arguments to UNIX lp Print Command.

See the example of using the enscript UNIX utility and two of the values the concurrent manager supplies as arguments. See: Example - Using the UNIX Enscript Command.

Enscript Arguments and Print Styles

Table 1 - 23 lists some sample enscript arguments, using the Courier font, for converting a report's output into postscript for the portrait, landscape, landwide, and A4 print styles.

Postscript Print Styles and Enscript Arguments

Print Style Enscript Arguments Explanation Result
Portrait -fCourier10 Font is Courier 10 point. 80 characters portrait
Landscape -r -fCourier8 -r rotates the printer's output 90 degrees to print in landscape mode. Font is Courier 8 point. 132 characters landscape
Landwide -r -fCourier6 -r rotates the printer's output 90 degrees to print in landscape mode. Font is Courier 6 point. 180 characters landscape
A4 -fCourier10 Font is Courier 10 point. 132 characters landscape (A4 paper)

Example - Using Enscript to Print Postscript

In this example, the enscript command, followed by its arguments, is entered in the Arguments field of the Printer Drivers window, and the Driver Method would be set to Command.

Figure 1 - 25.

Example - Using the UNIX Enscript Command

Syntax Explanation
-r Enscript argument. Rotates the printer's output 90 degrees to print in landscape mode.
-fCourier8 Enscript argument. -f selects the font, in this example the font is Courier with a point size of 8.
-B Enscript argument. Omits page headings.
-P$PROFILES$.PRINTER Enscript argument. -P precedes the name of the printer which the output is sent to. Concurrent manager token. $PROFILES$.PRINTER retrieves the operating system name of the printer associated with the request.
$PROFILES$.FILENAME Concurrent manager token. $PROFILES$.FILENAME calls out the filename of the report to be printed. The value retrieved is the output file name, including the path to the file.

In this example, the UNIX enscript command is entered along with two of the four arguments that a concurrent manager can supply values for.

See Also

Overview of Printers and Printing

Setting up Your Printers

Hierarchy of Printer and Print Style Assignments

         Previous  Next          Contents  Index  Navigation  Glossary  Library