PostScript Programming Guide © 2005 Ricoh Printing Systems America, Inc.
© 2005 Ricoh Printiing Systems America, Inc. All rights reserved. No part of this document may be reproduced without the express permission of Ricoh Printing Systems America, Inc. The material in this document is for informational purposes and is subject to change without notice. Ricoh Printing Systems America, Inc. assumes no responsibility for errors or omissions in this document. No liability is assumed for any damages resulting from the use of the information it contains.
Table of Contents Chapter 1. PostScript Languange Printer Commands Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-1 Device Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-3 Page Device Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-3 Printer . . . . . . . . . . . .
Chapter 2. I/O Setup Postscript I/O Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1 TBCP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Chapter 1 PostScript Languange Printer Commands Overview Printer commands for Adobe PostScript 3 provide a way for you to communicate with the printer to perform certain tasks. This document provides programming information about Adobe PostScript 3 and contains most of the PostScript commands. It is written for people who are familiar with the command structure of the PostScript language. Most software applications do not require you to enter printer commands.
The documentation assumes a knowledge of the following: n How to reset the interpreter and page device parameters to their factory defaults. n How to physically connect a printer to a host computer or user system. n How to use the communications protocols and emulators implemented in the printer. n How to use the printer’s control panel.
Device Setup The page device parameters represent particular raster output device features or processing options; the values represent the current settings of those features or options. The setpagedevice operator is used to set the values of the page device parameters and the current pagedevice operator is used to get the current values of these parameters. For more information about how the setpagedevice operator is used to set up a raster output device, refer to the Reference Manual.
Page Device Parameters Table (Continued) Key Type Default For More Information FoldDetails dictionary <> See Chapter 2 of the Supplement. [600 600] See Chapter 6 of the Reference Manual. HWResolution array ImagingBBox array or null null See Chapter 6 of the Reference Manual. InputAttributes dictionary See below See Chapter 6 of the Reference Manual. Procedure See below. See Chapter 6 of the Reference Manual. integer 0 See Chapter 4 of the Supplement and below.
Page Device Parameters Table (Continued) Key Type Default For More Information OutputAttributes dictionary See below See Chapter 6 of the Reference Manual. /Printer See Chapter 4 of the Supplement. false See Chapter 6 of the Reference Manual. true See Chapter 4 of the Supplement. (Stacker 2) See Chapter 6 of the Reference Manual. null See Chapter 4 of the Supplement. array See below See Chapter 4 of the Supplement.
Print Behavior With PJL Environment Variables The following table summarizes the behavior of the /NumCopies and /Collate print parameters when used with PJL environment variables QTY and COPIES.
Location Numbers and Corresponding Staple Location Finisher Option Location Physical Staple Position (LEF/SEF) Staple Location 0 invalid 1* 2 3 4 5 invalid 10 Top/Bottom 11 Center 12 Bottom + 180° rotation/Top 13 Center + 180° rotation 14 Top + 180° /Bottom + 180° rotation 15 Center + 180° rotation 16 Bottom + 180° rotation
Output Type OutputType Meaning (Stacker 0)* Sample Tray (Stacker 1) Standard Tray (Stacker 2) Elevator Tray (Stacker 3) Upper Tray (Stacker 4) Booklet Tray (Stacker 5)* Stacker 5 (Stacker 6)* Stacker 6 (Stacker 7)* Stacker 7 (Stacker 8)* Stacker 8 (Auto)* Autocascade *: Container Stacker only If this parameter is (Auto), the printer searches available output tray starting from Stacker 5 through Stacker 8 in order to switch output tray after tray full condition.
Establishing Breaks Within a Job A Set Break occurs when one or more of the following processing options changes within a job. Processing Options Collate ManualFeedTimeout OutputType Duplex Margins Left PageSize ExitJamRecovery Margins Top paper feed method HWResolution MediaWeight paper tray selection Jog NumCopies Staple ManualFeed OutputFaceUp StapleDetails The following sample shows the syntax required to change the /Staple parameter, causing a Set Break to occur.
Interpreter Parameters The semantics for interpreter parameters appear in the Reference Manual. For more recent parameters and their semantics, see the Supplement. User Parameters User parameters can be altered, within reasonable limits, by any PostScript language program without requiring a password. The user parameters establish temporary policies on matters such as whether to insert new items into caches.
System Parameters System parameters, in many cases, permanently alter the overall configuration of a product. They are set using the operator setsystemparams and read using the operator currentsystemparams. In general, setting system parameters requires a password. System parameters are not subject to save and restore. Their values persist across jobs. Listed below are the system parameters present in the printer.
GenericResourceDir string (Resource/) See Section 3.2 of the Supplement. (/) See Section 3.2 of the Supplement. integer 0 See Section 3.2 of the Supplement. string See below See Section 3.2 of the Supplement. see formula See Section 3.2 of the Reference Manual. see formula See Section 3.2 of the Reference Manual. 100000 See Section 3.2 of the Reference Manual. 65536 See Section 3.2 of the Supplement. 65536 See Section 3.2 of the Reference Manual. 100000 See Section 3.
StartupMode § integer 1 See Section 3.2 of the Supplement. null Value is stored on the HDD. See Section 3.2 of the Supplement. 300 See Section 3.2 of the Supplement. SystemParamsPassword §& string or null WaitTimeout § integer * Value is a read-only constant. ** Value read-only but changes. § Value is persistent across power cycles. & Value is write-only. MaxDisplayList The default value for this parameter is memory dependent. MaxFontCache The default value of MaxFontCache is memory dependent.
Product Strings The systemdict operators languagelevel, product, revision, serialnumber, and version have the following values in the printer. String Name Type Value languagelevel integer 3 revision* integer 1+ serialnumber integer randomly determined at startup version string 3011.106 * Also defined in statusdict. Model Strings The systemdict operators LicenseID and PrinterName have the following values.
Device Parameters of Type /FileSystem File system access from PostScript programs is described in Sections 3.8.2 and 3.8.3 of the Reference Manual and Section 3.3 of the Supplement. Parameters for Disk The factory default values for the %disk% device parameters are shown below. %disk% Device Parameters Key Type Default For More Information BlockSize * integer 1024 See Section 3.3 of the Supplement. name %scsi% See Section 3.3 of the Supplement. integer disk-dependent See Section 3.
Parameters for ROM The factory default values for the %rom% device parameters in the printer are shown below. %rom% Device Parameters Key Type Default For More Information BlockSize* integer 1 See Section 3.3 of the Supplement. 9110 See Section 3.3 of the Supplement. integer 4 See Section 3.3 of the Supplement. integer 0 See Section 3.3 of the Supplement. boolean true See Section 3.3 of the Supplement. 0 See Section 3.3 of the Supplement. integer 449104 See Section 3.
Parameters for Fontset The following table lists the factory default values for the %fontset% device parameters in the printer. %fontset% Device Parameters Key Type Default For More Information HasNames= boolean true See Section 3.3 of the Supplement. boolean true See Section 3.3 of the Supplement. boolean false See Section 3.3 of the Supplement. boolean true See Section 3.3 of the Supplement. integer 10 See Section 3.3 of the Supplement. name /FileSystem See Section 3.
Parameters for Scsi The following table lists the factory default values for the %scsi% device parameters in the printer. %scsi% Device Parameters Key Type Default For More Information BootDelay= integer 0 See Section 3.3 of the Supplement. boolean false See Section 3.3 of the Supplement. integer 6 See Section 3.3 of the Supplement. integer 61 See Section 3.3 of the Supplement. integer 1 See Section 3.3 of the Supplement. name /Parameters See Section 3.3 of the Supplement.
Regular Resources Most of the instances listed in the tables are described in the Reference Manual and the Supplement. The information about instances that are listed in the Regular Resource Category table is specific to this printer. Regular Resources Category Name Instances CIDFont CMap ColorRendering ColorSpace ControlLanguage Encoding No instances defined. No instances defined.
OutputDevice The printer supports one OutputDevice type: Default. The default output device is equivalent to the Printer instance. Each instance is represented as a dictionary which contains key-value pairs describing certain capabilities of that particular output device. Refer to the following tables and to Section 4.4 of the Supplement for further details of the contents of the dictionaries. The following table lists the key value pairs in the resource dictionary for OutputDevice type /Default.
Resources Whose Instances Are Implicit The following instances information is specific to this printer. Resources Whose Instances Are Implicit Category name Instances ColorRenderingType 1 ColorSpaceFamily CIEBasedA CIEBasedABC CIEBasedDEF CIEBasedDEFG DeviceGray Emulator No instances.
Resources Used in Defining New Resource Categories The following table lists those resources available in the printer that can be used to define new resource categories. Category Name 1-22 Instances Category Category CIDFont CMap ColorRendering ColorRenderingType ColorSpace ColorSpaceFamily ControlLanguage Emulator Encoding Filter FMapType Font FontSet Generic No instances defined.
Compatibility Level 1 Compatibility Operators The following operators are included for compatibility with existing Level 1 PostScript language driver software. These compatibility operators are present in Level 3 printers for compatibility purposes only and their use in PostScript Level 3 language programs is strongly discouraged. The following compatibility operators are present in the printer. They are listed here in three groups by dictionary.
Compatibility Operator Descriptions Some of the following compatibility operators use tray numbers to represent paper tray locations or feeding methods. The table below lists the tray numbers and the corresponding meanings for the printer. The compatibility operators listed here were implemented and defined for the printer.
setdefaultpapertray int setdefaultpapertray This operator copies the values of PageSize and MediaType found in the InputAttributes dictionary for the specified tray into a dictionary with keys for the PageSize and MediaType. It also writes the requested tray number into the first element of the Priority array in the InputAttributes dictionary and places this entry in the dictionary it is building. This dictionary is then passed to setpagedevice.
Paper Size Compatibility Operators The following table describes the paper size compatibility operators. See the subsection Paper Size Operations in the Supplement for more information.
Chapter 2 I/O Setup Postscript I/O Mode The PostScript I/O mode can be selected on a per Virtual Printer basis via the Web menu: Manage / System / Virtual Printer->->PostScript-> PostScript I/O Mode / Raw, Normal, or TBCP TBCP In the TBCP mode the printer will recognize and process the special characters as specified in the table below.
2-2 I/O Setup
Index Symbols Duplex parameter 1-3 %disk% device parameters 1-15 %fontset% device parameters 1-17 %rom% device parameters 1-16 %scsi% device parameters 1-18 E EdgeToEdge parameter 1-3 EndPage parameter 1-3 ExitJamRecovery parameter 1-3 B BeginPage parameter 1-3 BlockSize parameter 1-15 BootDelay parameter 1-18 break, establishing 1-9 BuildTime parameter 1-11 Bus parameter 1-15 ByteOrder parameter 1-11 C CartridgeID parameter 1-16 CartridgeType parameter 1-16 CheckParity parameter 1-18 Collate parameter
M ManualFeed parameter 1-4 ManualFeedTimeout parameter 1-4 ManualSize parameter 1-20 Margins parameter 1-4 MaxDisplayList parameter 1-12, 1-13 MaxFontCache parameter 1-12, 1-13 MaxFontItem key 1-10 MaxFormCache parameter 1-12 MaxImageBuffer parameter 1-12 MaxOutlineCache parameter 1-12 MaxPatternCache parameter 1-12 MaxPermanentVM parameter 1-12, 1-13 MaxRasterMemory parameter 1-12, 1-13 MaxScreenStorage parameter 1-12 MaxSourceList parameter 1-12, 1-13 MaxUPathCache parameter 1-12 MediaType parameter 1-4 M
Type parameter 1-15, 1-16, 1-17, 1-18 U userdict operators 1-23 V version operator 1-14 W WaitTimeout parameter 1-13 Writable parameter 1-15, 1-16, 1-17 Index-iii
Index-iv