Chapter 7 Emulation
7-124
dx dy rlineto Create line from current point to
relative point
dx dy rmoveto Move current point by relative
amount
ob(n-1)...ob0 n i roll ob(i-1)..ob0
ob(n01)..obi
Roll top n objects on stack by i
(mod n)
2 rootfont font Return a root composite
dictionary
angle matrix rotate matrix Rotate matrix transformation by
angle (degrees)
angle rotate Rotate user space by angle
(degrees)
num1 round num2 Round off num1 to nearest
integer
rrand int Get random number seed
string run Execute file
save save Save virtual memory
sx sy matrix scale matrix Define scaling matrix
sx sy scale Scale user space
font scale scalefont font’ Generate new font by scaling
old font
any 2 scheck bool Same as gcheck
string target search post match head
true or string false
Search for target substring in
string
key scale 2 selectfont Select a font and establish the
font dictionary
2 serialnumber int Return the serial number to
represent the machine
llx lly urx ury 2 setbbox Establish a bounding box for the
current path
proc 2 setblackgeneration Set the black generation
function parameter
wx wy llx lly urx ury setcachedevice Declare width and bounds of
cached character
w0x w0y llx lly urx
ury w1x w1y vx vy
2 setcachedevice2 Declare width and bounds of
cached character
num setcachelimit Declare maximum byte size of
cached character
mark size lower upper 2 setcacheparams Set the font cache parameters
wx wy setcharwidth Declare width and bounds of
uncached character
cyan magenta yellow
black
2 setcmykcolor Set the color space to Device
CMYK
comp1 comp2 ... comp
n
2 setcolor Set the current color parameter
dict 2 setcolorrendering Establish a CIE-based color
rendering dictionary
redfreq redang redproc
greenfreq greenang
greenproc bluefreq
blueang blueproc
grayfreq grayang
grayproc
2 setcolorscreen Set the halftone parameter
array (name) 2 setcolorspace Specify a color space
redproc greenproc
blueproc grayproc
2 setcolortransfer Set the transfer function
parameter
array offset setdash Set dash pattern for lines
string dict 2 setdevparams Set parameters for I/O device
file position 2 setfileposition Reposition a file
num setflat Set flatness tolerance
(smoothness of curves)
font setfont Set current font dictionary
Table 7.45. KPDL Page Description Operators (Sheet 8 of 11)
Preceding stack Operator Result Description