No part of this document may be reproduced without the express permission of Ricoh
Printing Sy st em s 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 liabilit y is assumed for any damages resul ting
from the use of the information it contains.
TRADEMARK
Digital Document Publisher, DDP, DDP 70, DDP 70e, DDP 92, and their associated
logo marks are trademarks of Ricoh Printing Systems America, I nc. All right s reserved.
All other terms and prod uct names may be trademar ks or registered t rademarks of thei r
respective owners, and are hereby acknowledged.
NOTICE TO USER
In an effort to meet the demand s of a ra pidly changing t echnolog y, the manufac turer is
continually developing new features and functions to meet your changing printing or
printer needs. Please be sure to consult all manual updates or addenda when using
this product’s documentation.
Printer com mands fo r Adobe PostSc rip t 3 provide a way for yo u to comm unica te with
the printer to perform certain tasks.
This document provi des programming inf ormation about Adob e 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. However, if needed, you should refer to
your software docume ntation for information about how t o enter printer comman ds.
This document also describes the particular PostScript interpreter parameters and
resources implemented for the printer. The printer has features and capabilities that
might not be present in other PostScript printers and that are not documented
elsewhere.
The foll owing documents are generally relev ant to the operation and progr amming of
PostScript printers.
Chapter 1
n
PostScript Language Reference Manual, Third Edition (Addison-Wesley),
(hereafter referred to as the Reference Manual), describes the programming
language used to tell printers what and how to print. It describes features of the
language available in all PostScript interpreters.
n
The PostScript Language Reference Manual Level 3 Version 3010 and 3011
Supplement (Adobe), (hereafter referred to as the Supplement), provides an up-to-
date catalog of standard page device, user, system, and device parameters. It
includes parameters that have changed since their original description in the
PostScript Language Reference Manual, Third Edition .
n
PostScript Language Tutorial and Co okbook (Addison-Wesley) contains
explanatory and tutorial material to improve users’ understanding of the
PostScript page description language. It introduces the PostScript language at a
basic le vel .
n
PostScript Language P rogram Design (Addison-Wesley) teaches programming
principles unique to the PostScript language with many usable samples. It is for
programmers interested in the effective and efficient design of PostScript
language pro grams and pri nte r dr i ver s .
n
PostScript Printer Description File Format Specification (Adobe) describes the
PostScript Printer Description (or PPD) file format which pr ovides information in
a machine-readable form about printer-specific features and about the fonts built
into the printer.
n
PostScript Printer Description File for the Printer, available from the Adobe
Developers Association, provides a device-independent way of invoking
device-dependent features. It is needed by some drivers to offer complete device
functionality to the user.
PostScript Languange Printer Commands1-1
Page 6
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 prot ocols and emulators implemented in the
printer.
n
How to use the printer’s control panel.
1-2PostScript Languange Print er Comma nds
Page 7
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
parameters and the current pagedevice operator is used to get the current values of these
parameters.
setpagedevice operator is used to set the values of the page device
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
Printer
The following page device parameters are present in the printer. The semantics for the
parameters appear in the Reference Manual and the Supplement.
The following table lists all the page device parameters for the
Page Device Parameters Table
KeyTypeDefaultFor More Information
BeginPage
procedure{pop}See Chapter 6 of the Reference Manual.
Collate
booleantrue
Duplex
booleanfalseSee Chapter 6 of the Reference Manual.
EdgeToEdge
booleanfalse
EndPage
procedure{exch pop 2 ne}See Chapter 6 of the Reference Manual.
ExitJamRecovery
booleanfalseSee Chapter 4 of the Supplement.
Fold
integer0See Chapter 2 of the Supplement.
See Chapter 6 of the Reference Manual and print
behavior information on page 1-6.
- Parameter not set.
a Numeric value entered for PJL QTY environment variable.
b Numeric value entered for PJL COPIES environment variable.
c Numeric value entered for PostScript /NumCopies parameter.
n/a Not applicable.
1-6PostScript Languange Print er Comma nds
Page 11
Location Numbers and Corresponding Staple Location
This boolean controls whether other trays of the same paper size and media type are
used when the current tray empties. The MBT is not used for this switching. If this
parameter is true, then, when a tray empties the printer searches for a tray containing
the same paper size and media type starting with Tray 1 and searches in order through
HCF , except MBT and Inserter Tray s. The value of Priority is not used to determine the
tray switching order.
ValueFolding Type
0No folding
2Center folding
PostScript Languange Printer Commands1-7
Page 12
Output Type
*: 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.
In case of followings, printer skips these output trays and switches next higher priority
output tray.
Page 1 and Page 2 are stapled.
Page 3 is not stapled.
Page 4 and Page 5 are stapled.
PostScript Languange Printer Commands1-9
/Staple twice with in the job.
Page 14
Interpreter Parame te rs
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.
The
setuserparams and currentuserparams operators are used to set and get the
current values of the user parameters. The initial value of user parameters at the time
the printer is turned on for the first time is product dependent. Unless otherwise
specified, all user parameters are subject to
Listed below are the user parameters present in the printer.
KeyTypeDefault For More Information
AccurateScreensbooleanfalseSee Section 3.1 of the Supplement.
JobNamestring( )See Section 3.1 of the Supplement.
JobTimeoutinteger0See Section 3.1 of the Supplement.
MaxDictStackinteger530See Section 3.1 of the Reference Manual.
MaxExecStackinteger10015See Section 3.1 of the Reference Manual.
MaxFontIteminteger12500See Section 3.1 of the Reference Manual.
MaxFormIteminteger100000See Section 3.1 of the Reference Manual.
MaxLocalVM *integer80% of RamSize See Section 3.1 of the Reference Manual.
MaxOpStackinteger100000See Section 3.1 of the Reference Manual.
MaxPatternIteminteger20000See Section 3.1 of he Reference Manual.
MaxScreenIteminteger48000See Section 3.1 of the Reference Manual.
MaxUPathIteminteger5000See Section 3.1 of the Reference Manual.
MinFontCompressinteger1250See Section 3.1 of the Reference Manual.
VMReclaiminteger0See Section 3.1 of the Reference Manual.
VMThresholdinteger40000See Section 3.1 of the Reference Manual.
WaitTimeoutinteger40See Section 3.1 of the Supplement.
* Value is a read-only constant.
save and restore.
MaxFontItem
The key MaxFontItem indicates the maximum number of bytes occupied by the pixel
array of a single character in the font cache.
1-10PostScript Languange Printer Comma nds
Page 15
System P arameters
System parameters, in many cases, permanently alter the overall configuration of a
product. Th ey are set usin g the opera tor
currentsystemparams. In general, setting system parameters requires a password.
System parameters are not subject to
jobs. Listed below are the system parameters present in the printer.
System Parameters
KeyTypeDefault For More Information
BuildTime*
integerTime dependentSee Section 3.2 of the Supplement.
ByteOrder*
booleanfalseSee Section 3.2 of the Reference Manual.
CurDisplayList**
integer0See Section 3.2 of the Reference Manual.
CurFontCache**
integer0See Section 3.2 of the Reference Manual.
CurFormCache**
integer0See Section 3.2 of the Reference Manual.
CurInputDevice**
string( )See Section 3.2 of the Supplement.
CurOutlineCache**
integer0See Section 3.2 of the Reference Manual.
CurOutputDevice**
string( )See Section 3.2 of the Supplement.
CurPatternCache**
integer0See Section 3.2 of the Reference Manual.
CurScreenStorage**
integer0See Section 3.2 of the Reference Manual.
CurSourceList**
integer0See Section 3.2 of the Supplement.
CurUPathCache**
integer0See Section 3.2 of the Reference Manual.
DoPrintErrors§
booleantrueSee Section 3.2 of the Supplement.
DoStartPage
booleanfalseSee Section 3.2 of the Supplement.
FactoryDefaults§
booleanfalseSee Section 3.2 of the Supplement.
FatalErrorAddress§
integer0See Section 3.2 of the Supplement.
FontResourceDir
string(fonts/)See Section 3.2 of the Supplement.
setsystemparams and read using th e operator
save and restore. Their values persist across
PostScript Languange Printer Commands 1-11
Page 16
GenericResourceDir
string(Resource/)See Section 3.2 of the Supplement.
GenericResourcePathSep
string(/)See Section 3.2 of the Supplement.
JobTimeout §
integer0See Section 3.2 of the Supplement.
LicenseID
stringSee belowSee Section 3.2 of the Supplement.
MaxDisplayList
integersee formulaSee Section 3.2 of the Reference Manu al.
MaxFontCache
integersee formulaSee Section 3.2 of the Reference Manu al.
MaxFormCache
integer100000See Section 3.2 of the Reference Manual.
MaxImageBuffer
integer65536See Section 3.2 of the Supplement.
MaxOutlineCache
integer65536See Section 3.2 of the Reference Manu al.
MaxPatternCache
integer100000See Section 3.2 of the Reference Manual.
MaxPermanentVM§
integerS ee belowSee Section 3.2 of the Supplement.
MaxRasterMemory§
integerS ee below.See Section 3.2 of the Supplement.
MaxScreenStorage§
integer120000See Section 3.2 of the Reference Manual.
MaxSourceList§
integerS ee formulaSee Section 3.2 of the Supplement.
MaxUPathCache
integer300000See Section 3.2 of the Reference Manual.
PageCount**§
integer0See Section 3.2 of the Supplement.
PrinterName §
stringSee belowSee Section 3.2 of the Supplement.
RamSize**§
integersee formulaSee Section 3.2 of the Supplement.
RealFormat*
string(IEEE)See Section 3.2 of the Reference Manu al.
Revision*
integer0See Section 3.2 of the Supplement.
StartJobPassword §&
string( )
Value is stored on the HDD. See Section 3.2
of the Supplement.
1-12PostScript Languange Printer Comma nds
Page 17
StartupMode §
integer1See Section 3.2 of the Supplement.
SystemParamsPassword §&
string or nullnull
WaitTimeout §
integer300See Section 3.2 of the Supplement.
* Value is a read-only constant.
** Va lue 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 de pendent.
MaxPermanentVM
The default value for this parameter is the largest positive integer.
Value is stored on the HDD. See Section 3.2
of the Supplement.
MaxRasterMemory
The default value of MaxRasterMemory is memory and print mode (simplex/duplex)
dependent.
MaxSourceList
The default value for this parameter is memory dependent.
RamSize
The value of RamSize is the actual size of installed memory. It ranges from 41943040
for 40 megabyte systems to 134217728 for a 128 megabyte system.
PostScript Languange Printer Commands 1-13
Page 18
Product Strings
The systemdict operators languagelevel, product, revision, serialnumber, and
version have the following values in the printer.
String NameTypeValue
languagelevelinteger3
revision*integer1+
serialnumberintegerrandomly determined at startup
versionstring3011.106
* Also defined in statusdict.
Model Strings
The systemdict operators LicenseID and PrinterName have the following values.
String NameTypeValue
LicenseIDinteger
PrinterNamestring
product*string(Enter the name of the product here.)
* Also defined in statusdict.
70 ppm:
(LN-091-002) Roman Font
(LN-091-003) Morisawa 2 Font
(LN-091-001) Morisawa 5 Font
92 ppm:
(LN-091-004) Roman Font
(LN-091-005) Morisawa 2 Font
(LN-091-006) Morisawa 5 Font
(Enter the name of the printer here,
depending on the model.)
Device Parameters
Device parameters are set using the operator setdevparams and read using the
operator
that they require a password, are global to the PostScript environment, and have similar
persistence characteristics. As with system parameters, some of these parameters can
be stored in non-volatile memory.
One property that distinguishes device parameters from both system and user
parameters is that device parameters may be interdependent: the legality of a value for
a given parameter might depend on the value of another parameter.
1-14PostScript Languange Printer Comma nds
currentdevparams. Device parameters are similar to system parameters in
NOTE:
Even if two products have the same device parameters set name, the
parameters in the set might differ; for example, because the hardware
support for that device differs.
Page 19
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
KeyTypeDefault For More Information
BlockSize *
integer1024See Section 3.3 of the Supplement.
Bus*
name%scsi%See Section 3.3 of the Supplement.
Free** §
integerdisk-dependentSee Section 3.3 of the Supplement.
HasNames*
booleantrueSee Section 3.3 of the Supplement.
InitializeAction
integer0See Section 3.3 of the Supplement.
Interleave*
integer5See Section 3.3 of the Supplement.
LogicalSize§ **
integerdisk-dependentSee Section 3.3 of the Supplement.
Mounted
booleantrueSee Section 3.3 of the Supplement.
PhysicalSize** §
integerdisk-dependent See Section 3.3 of the Supplement.
PrepareAction
integer0See Section 3.3 of the Supplement.
Removable*
booleanfalseSee Section 3.3 of the Supplement.
Searchable
booleantrueSee Section 3.3 of the Supplement.
SearchOrder
integer0See Section 3.3 of the Supplement.
Type*
name/FileSystemSee Section 3.3 of the Supplement.
Writable
booleantrueSee Section 3.3 of the Supplement.
§ Value is derived from the disk media.
* Value is a read-only constant.
** Va lue is read-only but changes.
Device %disk0% is on the %scsi% bus.
PostScript Languange Printer Commands 1-15
Page 20
Parameters for ROM
The factory default values for the %rom% device parameters in the printer are shown
below.
%rom% Device Parameters
KeyTypeDefault For More Information
BlockSize*
integer1See Section 3.3 of the Supplement.
CartridgeID *
integer9110See Section 3.3 of the Supplement.
CartridgeType *
integer4See Section 3.3 of the Supplement.
Free*
integer0See Section 3.3 of the Supplement.
HasNames*
booleantrueSee Section 3.3 of the Supplement.
InitializeAction
integer0See Section 3.3 of the Supplement.
LogicalSize *
integer449104See Section 3.3 of the Supplement.
Mounted
booleantrueSee Section 3.3 of the Supplement.
PhysicalSize *
integer449104See Section 3.3 of the Supplement.
Removable*
booleanfalseSee Section 3.3 of the Supplement.
Searchable
booleantrueSee Section 3.3 of the Supplement.
SearchOrder
integer11See Section 3.3 of the Supplement.
Type*
name/FileSystemSee Section 3.3 of the Supplement.
Writable*
booleanfalseSee Section 3.3 of the Supplement.
* Value is a read-only constant.
1-16PostScript Languange Printer Comma nds
Page 21
Parameters for Fontset
The following table lists the factory default values for the %fontset% device
parameters in the printer.
%fontset% Device Parameters
KeyTypeDefault For More Information
HasNames=
booleantrueSee Section 3.3 of the Supplement.
Mounted=
booleantrueSee Section 3.3 of the Supplement.
Removable=
booleanfalseSee Section 3.3 of the Supplement.
Searchable=
booleantrueSee Section 3.3 of the Supplement.
SearchOrder=
integer10See Section 3.3 of the Supplement.
Type=
name/FileSystemSee Section 3.3 of the Supplement.
Writable=
booleanfalseSee Section 3.3 of the Supplement.
= Value is a read-only constant.
PostScript Languange Printer Commands 1-17
Page 22
Parameters for Scsi
The following table lists the factory default values for the %scsi% device parameters
in the printer.
KeyTypeDefault For More Information
BootDelay=
integer0See Section 3.3 of the Supplement.
CheckParity=
booleanfalseSee Section 3.3 of the Supplement.
InitiaturId=
integer6See Section 3.3 of the Supplement.
Poll=
integer61See Section 3.3 of the Supplement.
TargetId=
integer1See Section 3.3 of the Supplement.
Type=
name/ParametersSee Section 3.3 of the Supplement.
= Value is a read-only constant.
%scsi% Device Parameters
Categories and Reso urce Instances
The following tables list the factory-installed categories and resource instances in the
printer. New resources of the regular resource categories are installed by the customer.
For example, font and pattern resources can be added. The categories of implicit
resources represent built-in capabilities of the interpreter . For example, the FormType
category indicates that the interpreter understands Type 1 only . There are also
categories used to define new categories.
1-18PostScript Languange Printer Comma nds
Page 23
Regular Resources
Most of the instances listed in the tables are described in th e Reference Manual and the
Supplement. The information about instances that are listed in the Regular Resource
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.
Resource Dictionary for OutputDevice Type /Default
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 languag e programs
is strongly discouraged.
The following compatibility operators are present in the printer. They are listed here in
three groups by dictionary . See “Compatibility Operator Descriptions” on page 1-24for
information about those compatibility operators which are not found, or differ from, the
ones documented in Chapter 6 of the Supplement.
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.
Tray Numbers and Their Meanings in the Compatibility Operators
*1: Publishing Finisher only .
*2: Booklet Finisher only - 92 ppm
defaultpapertray defaultpapertray int
The operator returns the first element of the Priority array in the InputAttributes
dictionary found within the current page device. This number represents the default
paper tray slot which may or may not be installed. If there is no
InputAttributes at the time that defaultpapertray is executed, some arbitrary slot
number will be returned.
Errors: stackoverflow
papertraypa p er tray int
This operator returns the first element of the Priority array in the InputAttributes
dictionary found within the current page device. This number represents the current
paper tray slot which may or may not be installed. If there is no
InputAttributes at the time that papertray is executed, some arbitrary slot number will
be retur n ed.
Errors: stackoverflow
Priority array within
Priority array within
1-24PostScript Languange Printer Comma nds
Page 29
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
result is that the requested tray will be selected as a default and will be used by any
PostScript language job that does not expressly select a paper size or medium. If the
setdefaultpapertray compatibility operator is invoked at a save level other than zero,
an invalid access error occurs.
Errors: rangecheck, stackunderflo w, typecheck
setpapertrayint setpapertray
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
the dictionary it is building. This dictionary is then passed to
result is that the requested tray will be selected until some other
operation or tray selection compatibility operator causes a different tray to be selected.
Errors: rangecheck, stackunderflo w, typecheck
Priority array in the InputAttributes dictionary and places this entry in
setpagedevice. The
setpagedevice. The
setpagedevice
PostScript Languange Printer Commands 1-25
Page 30
Paper Size Compatibility Operators
The following table describes the paper size compatibility operators. See the subsection
Paper Siz e Ope r at i o ns in the Supplement for more information.
The following table describes the paper tray compatibility operators. See the subsection
Paper Tray Operations in the Supple ment for more information.
The PostScript I/O mode can be selected on a per Virtual Printer basis via the Web
menu:
Manage / System / Virtual Printer->< PS virtual printer>->PostScrip t->
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.
Chapter 2
I/O Setup
ASCII
KEYBOARD
^ASOH0x01Quote data characterSee Control Function
^CETX0x03Generate an interrupt errorSee Control Function
^DEOT0x04End of file markerSee Control Function
^EENQ0x05ReservedIgnored
^QDC10x11XON in XON/XOFF flow controlIgnored
^SDC30x13XOFF in XON/XOFF flow controlIgnored
^TDC40x14Job status requestSee Control Function
^[ESC0x1BStart of end protocol sequenceSee Control Function
^\FS0x1CReservedIgnored
ASCII
NAME
VALUE
(HEX)
CONTROL FUNCTIONPRINTER BEHAVIOR
The ^C special character causes an interrupt error. Data that follows a ^C character is
discarded until a ^D character is received.
The ^T special character causes PostScript to return its status via the back-channel. If
the PostScript interpreter is waiting for a job, the status string “%%[ status: id le ]%%”
is sent. If the PostScript interpreter is busy processing a job, the status string “%%[ status: busy ; sourc e: Network ]%%” is sent.
The ^D special character forces the end of PostScript job.
To transmit control characters as data, the host software must quote the character.
Quoting is done by replacing the character with the two-character sequence: ^A
followed by the character itself XOR-ed with 0x40. For example, to send a byte with
the hex value 0x14, the two-byte seq uence 0x01 0x54 is sent.