You can print one or more workspaces directly from within G2. The Printer Setup system table controls how G2 produces printed images of workspaces for output on PostScript or PostScript-compatible printers.
Specifying the Printing Details
The Printing-details attribute controls two aspects of printing:
workspace scaling
color conversion
workspace scaling setting controls the scale at which G2 creates workspaces for printing, as in this example:
Workspace scaling: 100 workspace units per inch
scale-to-fit-single-page and the workspace is very large, the workspace items may be illegible when you print them, because of their very small size. If a workspace cannot fit on to a single printed page, G2 automatically prints different parts of the workspace on separate pages, in order of left to right and top to bottom. By attaching the printed pages together, you can assemble a paper display of your entire KB.
Color conversion: black-and-white
Color Conversion setting to black-and-white. Setting Color Conversion in this way reduces the size of the image data in the resulting print file. Page-layout attribute lets you specify six different print settings:
Paper-size Setting
You can specify the dimensions of the physical page that receives the output from the next print job. You can enter either the absolute page dimensions in inches, centimeters, feet, or millimeters, or specify a standard paper size (such as letter, legal, ledger, A3, and so on).
letter (8.5" by 11.0")
legal (8.5" by 14.0")
ledger (11.0" by 17.0")
a0, a1, a2, a3, a4, a5
b0, b1, b2, b3, b4, b5
Page-layout attribute, including an absolute page size:
![]() |
Specifying How to Spool the Print File
The Print-spooling attribute lets you specify three spooling settings:
G2 only prints your print job file if your system is configured to spool files to a printer. Otherwise, G2 creates the print job file, but you must spool that file to the printer.
Spooled-filename-template Setting
The default for this setting is the directory from which you start G2. You can override the default by specifying a different directory pathname. By default, G2 names the file:
print-*.ps
print-1.ps, the second print-2.ps, and so on. If you edit the Spooled-filename-template setting to write the file to another directory or to use a different file name, remember to keep the asterisk (*) in the name; otherwise G2 does not uniquely name each file.
yes, G2 automatically sends the resulting print job to your printer, discarding the print job after printing is complete. If the value is no, you must queue the print job manually. G2 does not know how to spool to the printer on all platforms. This feature is not currently supported.
"unknown" if your computer is not connected to a printer. An example is:
Spooled filename template: "/usr/g2/print.ps";
Spool file to printer: no;
Printer identification: "unknown"
Printing-priority attribute lets you control the KB background printing priority. The default priority is 8. For more information about scheduling and priorities, see Scheduling and Prioritizing Tasks.
Note: The system procedure, g2-work-on-printing, lets you further control background printing. For more information, see the G2 System Procedures Reference Manual.
Determining the Print File Format
Two print file formats are available: postscript and encapsulated postscript. The default format is postscript.
Class-Specific Attributes of Printer Setup
The class-specific attributes of the Printer Setup system table are: