TOPIC
This article provides PostScript commands that allow you to change the paper tray selection for the Apple LaserWriter 12/640 PS printer.
DISCUSSION The PostScript information below may be useful for customers who are using Apple LaserWriter 12/640 PS printers with systems (typically unix-based) that do not provide PostScript driver support for selecting paper trays. NOTE: This information only applies to the Apple LaserWriter 12/640 PS printer; commands may vary from printer model to printer model. NOTE: The information below does not apply to customers with Mac OS and Windows-based computers, since this functionality is built into the PostScript printer drivers for these operating systems. If your printing system allows you to add PostScript to your jobs, the following PostScript code fragments will allow you to change the paper tray selection on a per-job basis. Information on how to change the printer's default tray selection is also provided. The details of how to automate this process on a per-job basis vary from system to system (if it can be automated at all). Please consult your system's documentation for specifics. Note that jobs must be in PostScript format already; you can not add PostScript to an ASCII text or PCL job. CAUTION: If you choose to use the PostScript code provided in this article, you assume all risks involved in making these changes. PostScript code, if not entered correctly, can place the LaserWriter into a condition requiring service. ----------------------------- 250 Page Tray (Standard Tray) ----------------------------- %! currentpagedevice /InputAttributes get 0 get dup null eq { pop } { dup length 1 add dict copy dup /InputAttributes 1 dict dup /Priority [0 1 2 3] put put setpagedevice } ifelse %% End PostScript ----------------- Multipurpose Tray ----------------- %! currentpagedevice /InputAttributes get 1 get dup null eq { pop } { dup length 1 add dict copy dup /InputAttributes 1 dict dup /Priority [1 0 2 3] put put setpagedevice } ifelse %% End PostScript ------------- Optional Tray ------------- %! currentpagedevice /InputAttributes get 2 get dup null eq { pop } { dup length 1 add dict copy dup /InputAttributes 1 dict dup /Priority [2 0 1] put put setpagedevice } ifelse %% End PostScript Changing the Default Tray Use the following information to change the default paper tray selection for the Apple LaserWriter 12/640 PS printer. These settings will remain until the defaults are changed again. The PostScript code fragments below should be downloaded by themselves; they should not be prepended to any other PostScript jobs like the per-job fragments discussed above. This is PostScript Level 1 code to change the default tray: %! serverdict begin 0 exitserver statusdict begin n setdefaultpapertray end %% End PostScript Replace the "n" before "setdefaultpapertray" based on the following table: 0 (StandardCassette) 1 (Multipurpose) 2 (OptionalCassette) 3 (Envelope) This changes the default paper tray permanently, or until you use this PostScript code to change the default tray again. This is the equivalent PostScript Level 2 code: %! serverdict begin 0 exitserver 1 dict dup /InputAttributes 1 dict dup /Priority [2 1 0 3] put put setpagedevice %% End PostScript This sets the paper tray priority to: 1st Priority: Optional Cassette (500 Sheets) - designated by the "2" in the array above. 2nd Priority: Multipurpose Tray - designated by the "1" in the array above. 3rd Priority: Standard Cassette (250 Sheets) - designated by the "0" in the array above. 4th Priority: Envelope Tray - designated by the "3" in the array above. You can change the paper tray priority order by changing the order of the values in the "/Priority" section, above. For example, /Priority [0 1 2 3] makes the 250 sheet cassette first priority, then the Multipurpose tray next, then the 500 sheet cassette, and finally the envelope tray. |
Document Information | |
Product Area: | Printers |
Category: | LaserWriters |
Sub Category: | LaserWriter 12/640 PS |
Copyright © 2000 Apple Computer, Inc. All rights reserved.