1# https://web.archive.org/web/20170218093716/https://www.adobe.com/products/postscript/pdfs/PLRM.pdf 2# TODO(jvoisin) Add more, starting from page 318 3 4 5header="%!PS" 6 7#types 8"array" 9"packedarray" 10"dict" 11"string" 12"userdict" 13"$error" 14"statusdict" 15"FontDirectory" 16"globaldict" 17"systemdict" 18"GlobalFontDirectory" 19"Order" 20"DateSource" 21"BitsPerSample" 22"Encode" 23"Decode" 24"Size" 25 26# Stack operators 27"dup" 28"exch" 29"pop" 30"copy" 31"roll" 32"index" 33"mark" 34"clear" 35"count" 36"counttomark" 37"cleartomark" 38 39# maths 40"add" 41"sub" 42"mul" 43"div" 44"idiv" 45"mod" 46"abs" 47"neg" 48"ceiling" 49"floor" 50"round" 51"truncate" 52"sqrt" 53"exp" 54"ln" 55"log" 56"rand" 57"srang" 58"rrand" 59 60# arrays 61"get" 62"put" 63"copy" 64"length" 65"forall" 66"getinterval" 67"putinterval" 68"aload" 69"astore" 70"mark" 71"setpacking" 72"currentpacking" 73"begin" 74"end" 75"def" 76"store" 77"load" 78"where" 79"countdictstack" 80"cleardictstack" 81"dictstack" 82"known" 83"maxlength" 84"undef" 85"<<" 86">>" 87"search" 88"anchorsearch" 89"token" 90 91# relational operators 92"eq" 93"ne" 94"gt" 95"ge" 96"lt" 97"le" 98"and" 99"or" 100"xor" 101"true" 102"false" 103"bitshift" 104 105 106#control operators 107"if" 108"else" 109"ifelse" 110"exec" 111"for" 112"repeat" 113"loop" 114"forall" 115"pathforall" 116"kshow" 117"exit" 118"countexecstack" 119"execstack" 120"stop" 121"errordict" 122"stopped" 123 124 125# type 126"type" 127"xcheck" 128"rcheck" 129"wcheck" 130"cvlit" 131"cvx" 132"readonly" 133"executeonly" 134"noacces" 135"cvi" 136"cvr" 137"cns" 138"cvs" 139"cvrs" 140 141#misc 142"print" 143"invalidaccess" 144"gcheck" 145"showpage" 146"currentgstate" 147"currentfile" 148"status" 149"byteavailable" 150"setdevparams" 151"currentdevparams" 152"Predictor" 153"Columns" 154"Colors" 155"BitsPerComponent" 156"Uncompressed" 157"EndOfLine" 158"EncodedByteAlign" 159"EndOfBlock" 160"Blackls1" 161"DamagedRowsBeforeError" 162"CloseTarget" 163"HuffTables" 164"ColorTransform" 165 166 167# vm 168"load" 169"save" 170"restore" 171"setglobal" 172"grestoreall" 173"invalidrestore" 174"startjob" 175"exitserver" 176 177# User objects 178"defineuserobject" 179"undefineuserobject" 180"execuserobject" 181"UserObjects" 182 183#i/o 184"read" 185"write" 186"readstring" 187"readline" 188"writestring" 189"readhexstring" 190"writehexstring" 191"token" 192"flush" 193"flushfile" 194 195 196# files 197"file" 198"deletefile" 199"renamefile" 200"status" 201"filenameforall" 202"setfileposition" 203"fileposition" 204"%stdin" 205"%stdout" 206"%stderr" 207"%statementedit" 208"%lineedit" 209 210# Filters 211"ASCII85Decode" 212"ASCII85Encode" 213"ASCIIHexDecode" 214"ASCIIHexEncode" 215"Decode" 216"Encode" 217"RunLengthEncode" 218"RunLengthDecode" 219"CCITTFaxEncode" 220"CCITTFaxDecode" 221"DCTEncode" 222"DCTDecode" 223"ReusableStreamDecode" 224"NullEncode" 225"SubFileDecode" 226"filter" 227"LWZEncode" 228"LWZDecode" 229"FlateEncode" 230"FlateDecode" 231"EODCount" 232"EODString" 233"CloseSource" 234 235 236# Resources 237"findresource" 238"resourcestatus" 239"resourceforall" 240"definerresource" 241"undefineresource" 242"findfont" 243"definefont" 244"resourcestatsu" 245"Font" 246"CIDFont" 247"CMap" 248"FontSet" 249"Encoding" 250"Form" 251"Pattern" 252"ProcSet" 253"ColorSpace" 254"Halftone" 255"ColorRendering" 256"IdiomSet" 257"Inkparam" 258"TrapParams" 259"OutputDevice" 260"Controllangue" 261"Localization" 262"PDL" 263"HWOptions" 264"Filter" 265"ColorSpaceFamily" 266"Emulator" 267"IODevice" 268"ColorRenderingType" 269"FMapType" 270"FontType" 271"FormType" 272"HalftoneType" 273"ImageType" 274"PatternType" 275"FunctionType" 276"ShadingType" 277"TrappingType" 278"Category" 279"Generic" 280"BitMapFontInit" 281"CIDInit" 282"ColorRendering" 283"FontSetInit" 284"Trapping" 285"ColorSpace" 286"ColorSpaceFamily" 287"sethalftone" 288"DefineResource" 289"UndefineResource" 290"FindResource" 291"ResourceStatus" 292"ResourceForAll" 293"Category" 294"InstaceType" 295"ResourceFileName" 296"Intent" 297"AsyncRead" 298"Times-Roman" 299 300 301# Error handling 302"errorname" 303"errorinfo" 304"command" 305"newerror" 306"ostack" 307"estack" 308"dstack" 309"recordstacks" 310"binary" 311"bind" 312"average" 313 314 315# Image models 316"CTM" 317"DeviceGray" 318"arc" 319"arcn" 320"artct" 321"clip" 322"cliprestore" 323"clipsave" 324"closepath" 325"currentlinewidth" 326"curveto" 327"fill" 328"grestone" 329"gsave" 330"image" 331"ineofill" 332"infill" 333"instroke" 334"inueofill" 335"inustroke" 336"lineto" 337"moveto" 338"newpath" 339"nocurrentpoint" 340"path" 341"position" 342"rcurveto" 343"rlineto" 344"setbox" 345"setlinewidth" 346"show" 347"stroke" 348"ucache" 349"ufill" 350"ustroke" 351"cvlit" 352"ufill" 353"ueofill" 354"rectfill" 355"rectstoke" 356"rectclip" 357"execform" 358"FormType" 359"XIUD" 360"BBox" 361"Matrix" 362"PaintProc" 363"Implementation" 364 365 366# Colorspace 367"setcolorspace" 368"setgray" 369"setrgbcolor" 370"setcmykcolor" 371"image" 372"colorimage" 373"sethsbcolor" 374"CIEBasedABC" 375"CIEBasedA" 376"CIEBaseDEF" 377"CIEBaseDEFG" 378"Pattern" 379"Indexed" 380"Separation" 381"DeviceN" 382"setpattern" 383"currentgray" 384"currentrgbcolor" 385"currentcmykcolor" 386"setcachedevice" 387"setcachedevice2" 388"BuildGlyph" 389"BuildChar" 390"CharString" 391"shfill" 392"setundercolorremoval" 393"settransfer" 394"setscreen" 395"sethalftone" 396"setcolortransfer" 397"DeviceRGB" 398"DeviceCMYK" 399"DeviceGray" 400"RangeABC" 401"DecodeABC" 402"MatrixABC" 403"RangeLMN" 404"DecodeLMN" 405"MatrixLMN" 406"WhitePoint" 407"BlackPoint" 408 409 410# Patterns 411"PatternType" 412"XUID" 413"PaintProc" 414"BBox" 415"XStep" 416"YStep" 417"PaintType" 418"TilingType" 419"Implementation" 420"Shading" 421"ShadingType" 422"AntiAlias" 423"Coords" 424"BitsPerFlag" 425"BitsPerCoordinate" 426"MultipleDataSources" 427 428 429# Misc things 430"[-1, 1, -1, 1]" 431"[-1 1]" 432"1337" 433"<</" 434