![]() |
||||||||
![]() |
||||||||
![]() |
![]() |
![]() |
![]() |
![]() |
||||
![]() |
||||||||
Products | Support | Download | Contact | |||||
![]() |
Contents | Index | About the Icons
The PostScript language provides three ways to access paper trays: by paper size, by tray number, and by stock type. Selection by paper size is directly supported in the ScriptServer for OpenVMS product using the SCRIPT Facility or the PRINT/PARAM=SHEET_SIZE parameter, or in the ScriptServer PAN Printing System through forms which invoke the appropriate resources. Tray selection by stock type is only available in PostScript Level 2 and later, and is documented in Tech Memo 82: Selecting Paper Trays Based on Media Type.
The essence of the problem is determining the tray number assigned to each tray by the PostScript interpreter, which may or may not be the same as those used by other print definition languages (such as PCL) on the same printer. Once the tray number has been determined, it is fairly straightforward create a setup that accesses the tray automatically.
PAPER_HANDLING.PS
, and PAPERTRAY.PS
.
These files are usually distributed with the OpenVMS product, but
in any case they are available to all GrayMatter Software customers
on request.
Printing PAPER_HANDLING.PS
generates a detailed report of the
PostScript interpreter's view of the paper tray configuration, including the
paper sizes and detailed media information for each tray available.
Printing PAPERTRAY.PS
causes a page to be drawn from each tray
available, labeling each page with the tray number it was drawn from. Prior
to printing this file, mark the first sheet of paper in each of the available
trays with a note that identifies the tray, such as "middle" or "top".
statusdict begin 3 setpapertray end letter
This technique works with all PostScript Level 1 printers, and most Level 2 and later printers.
COPY SYS$LIBRARY:SSV$DEVCTL.TLB SYS$COMMON:[SYSLIB]
LIBR/INSERT SYS$LIBRARY:SSV$DEVCTL.TLB LTRHEAD.PS
DEFINE/FORM/STOCK=DEFAULT/SETUP=LTRHEAD LETTERHEAD 12345
You're now ready to use your new form name, for example:
$ PRINT/QUEUE=QUEUE1/FORM=LETTERHEAD MYFILE.LIS
Save the fragment as a resource and associate it with a form.
© 2020 GrayMatter Software Corporation | ![]() |
Privacy policy | ![]() |
Terms of use |