| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (19 out of 22)

Printer Setup

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

The workspace scaling setting controls the scale at which G2 creates workspaces for printing, as in this example:

If you choose 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

The color conversion setting controls how G2 converts colors for printing. Possible values are:

Color conversion setting Result
black-and-white
Prints the workspace in black and white.
grays
Prints the workspace in shades of gray.
full-color
Prints the workspace in color when you use a color PostScript printer.

An example is:


Tip: Before printing a workspace with a full-color background image on a non-color printer, change the 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.

Specifying the Printer Page Layout

The Page-layout attribute lets you specify six different print settings:

Page-layout setting Description
Paper size
any valid page size, as the next section describes
Paper orientation
portrait
landscape

Left margin
Any number of inches or centimeters. You can specify the unit. For example, you can specify 0.75 inch or 3 centimeter. The default value is 0.5 inch.
Top margin
Same as those specified for Left margin.
Right margin
Same as those specified for Left margin.
Bottom margin
Same as those specified for Left margin.

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).

The names and dimensions of the standard paper sizes that you can specify are:

This example shows how to specify the 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:

Spooling setting Description
Spooled filename template
The directory to which directory G2 writes the print job file.
Spool file to printer
Determines whether to spool print file. This feature is currently not supported.
Printer identification
Destination printer.

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:

where the asterisk represents a number that G2 increments each time it creates a new print file to form a unique name. The first file you print is named 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.


Note: The OpenVMS operating system is an exception to requiring the asterisk (*) in the file name. In most cases, OpenVMS maintains separate file versions by default.

Spool-file-to-printer Setting

If the value of this specification is 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.

Printer-identification Setting

Specifies the name of the printer on which you want to print. This specification is useful when multiple printers are connected to your computer or network. G2 displays the string "unknown" if your computer is not connected to a printer.

An example is:

Controlling the Printing Priority

The 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.

For more information about these two formats, see Printing a Workspace.

Class-Specific Attributes of Printer Setup

The class-specific attributes of the Printer Setup system table are:

Attribute Description
Printing-details
Controls the scaling of workspace size to paper and color conversion.
Allowable values:
See description following table.
Default value:
Workspace scaling: 100 workspace units per inch;
Color conversion: black-and-white



Page-layout
Controls the page layout for the printer.
Allowable values:
See description following table.
Default value:
Paper size: letter;
Paper orientation: portrait;
Left margin: 0.5 inch;
Top margin: 0.5 inch;
Right margin: 0.5 inch;
Bottom margin: 0.5 inch



Print-spooling
Controls the default file specification, spooling capabilities, and printer information.
Allowable values:
See description following this table.
Default value:
Spooled filename template: `print-*.ps';
Spool file to printer: no;
Printer identification: `unknown'



Print-priority
The default priority at which G2 services print requests.
Allowable values:
1 - 10
Default value:
8


Printing-file-format
Determines whether to print a PostScript or Encapsulated PostScript format
Allowable values:
postscript
encapsulated postscript

Default value:
postscript

| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (19 out of 22)

Copyright © 1997 Gensym Corporation, Inc.