Specifications
CHAPTER 3
PostScript Level 1 Compatibility Operators
82 Compatibility Operator Descriptions
setdefaultpapertray 3
Syntax int setdefaultpapertray –
Definition This operator copies the values for the PageSize, MediaType,
MediaColor, and MediaWeight parameters found in the
InputAttributes dictionary for the specified tray, into a
dictionary with keys for PageSize, MediaType, MediaColor,
and MediaWeight.
The requested tray number in the int parameter is also written into
the first element of the Priority array in the InputAttributes
dictionary, and placed in the dictionary being built. The new
dictionary is passed to the setpagedevice operator, and the
requested tray is selected as the default paper tray for printing. This
paper tray will be used by any PostScript job that doesn’t expressly
request another paper size.
If setdefaultpapertray is called at a time when the save level is
any value other than zero, an invalidaccess error is returned.
Error(s) invalidaccess, rangecheck, stackunderflow, typecheck
setpapertray 3
Syntax int setpapertray –
Definition This operator copies the values for the PageSize, MediaType,
MediaColor, and MediaWeight parameters found in the
InputAttributes dictionary for the specified tray, into a
dictionary with keys for PageSize, MediaType, MediaColor,
and MediaWeight.
The requested tray number in the int parameter is also written into
the first element of the Priority array in the InputAttributes
dictionary, and placed in the dictionary being built. The new diction-
ary is passed to the setpagedevice operator, and the requested
paper tray is selected. This paper tray will be used by any
PostScript job that doesn’t expressly request another paper size.
Error(s) rangecheck, stackunderflow, typecheck










