Skip to content

PDF20 Spec Annex A

Marc Jones edited this page Dec 30, 2025 · 1 revision

Annex A: Operator Summary

Part of: PDF20-Spec-Index

Navigation: PDF20-Spec-14-Document | PDF20-Spec-Index | PDF20-Spec-Annex-B


Annex A (informative) Operator Summary A.1

General

This annex lists, in alphabetical order, all the operators that may be used in PDF content streams.

A.2

PDF content stream operators

"Table A.1 — PDF content stream operators" lists each operator, its corresponding PostScript language operators (when it is an exact or near-exact equivalent of the PDF operator), a description of the operator, and references to the table where each operator is introduced. Table A.1 — PDF content stream operators Operator PostScript Equivalent

Description

Table

b

closepath, fill, stroke

Close, fill, and stroke path using non-zero winding number rule

"Table 59 — Path-painting operators"

B

fill, stroke

Fill and stroke path using non-zero winding "Table 59 — Path-painting operators" number rule

b*

closepath, eofill, stroke

Close, fill, and stroke path using even-odd rule

"Table 59 — Path-painting operators"

B*

eofill, stroke

Fill and stroke path using even-odd rule

"Table 59 — Path-painting operators"

BDC

(PDF 1.2) Begin marked-content sequence with property list

"Table 352 — Marked-content operators"

BI

Begin inline image object

"Table 90 — Inline image operators"

BMC

(PDF 1.2) Begin marked-content sequence

"Table 351 — Entries in a data dictionary"

BT

Begin text object

"Table 107 — Text-showing operators"

BX

(PDF 1.1) Begin compatibility section

"Table 33 — Compatibility operators"

c

curveto

Append curved segment to path (three control points)

"Table 60 — Clipping path operators"

cm

concat

Concatenate matrix to current transformation matrix

"Table 56 — Graphics state operators"

844

© ISO 2020 – All rights reserved

ISO 32000-2:2020(E)

Operator PostScript Equivalent

Description

Table

CS

setcolorspace

(PDF 1.1) Set colour space for stroking operations

"Table 73 — Colour operators"

cs

setcolorspace

(PDF 1.1) Set colour space for nonstroking operations

"Table 73 — Colour operators"

d

setdash

Set line dash pattern

"Table 56 — Graphics state operators"

d0

setcharwidth

Set glyph width in Type 3 font

"Table 111 — Type 3 font operators"

d1

setcachedevice Set glyph width and bounding box in Type 3 "Table 111 — Type 3 font operators" font

Do

Invoke named XObject

"Table 86 — XObject operator"

DP

(PDF 1.2) Define marked-content point with "Table 352 — Marked-content property list operators"

EI

End inline image object

"Table 90 — Inline image operators"

EMC

(PDF 1.2) End marked-content sequence

"Table 352 — Marked-content operators"

ET

End text object

"Table 105 — Text object operators"

EX

(PDF 1.1) End compatibility section

"Table 33 — Compatibility operators"

f

fill

Fill path using non-zero winding number rule

"Table 59 — Path-painting operators"

F

fill

Fill path using non-zero winding number rule (deprecated in PDF 2.0)

"Table 59 — Path-painting operators"

f*

eofill

Fill path using even-odd rule

"Table 59 — Path-painting operators"

G

setgray

Set gray level for stroking operations

"Table 73 — Colour operators"

g

setgray

Set gray level for nonstroking operations

"Table 73 — Colour operators"

(PDF 1.2) Set parameters from graphics state parameter dictionary

"Table 56 — Graphics state operators"

gs h

closepath

Close subpath

"Table 58 — Path construction operators"

i

setflat

Set flatness tolerance

"Table 56 — Graphics state operators"

Begin inline image data

"Table 90 — Inline image operators"

ID j

setlinejoin

Set line join style

"Table 56 — Graphics state operators"

J

setlinecap

Set line cap style

"Table 56 — Graphics state operators"

K

setcmykcolor

Set CMYK colour for stroking operations

"Table 73 — Colour operators"

© ISO 2020 – All rights reserved

845

ISO 32000-2:2020(E)

Operator PostScript Equivalent

Description

Table

k

setcmykcolor

Set CMYK colour for nonstroking operations

"Table 73 — Colour operators"

l

lineto

Append straight line segment to path

"Table 58 — Path construction operators"

m

moveto

Begin new subpath

"Table 58 — Path construction operators"

M

setmiterlimit

Set miter limit

"Table 56 — Graphics state operators"

MP

(PDF 1.2) Define marked-content point

"Table 352 — Marked-content operators"

n

End path without filling or stroking

"Table 59 — Path-painting operators"

q

gsave

Save graphics state

"Table 56 — Graphics state operators"

Q

grestore

Restore graphics state

"Table 56 — Graphics state operators"

Append rectangle to path

"Table 58 — Path construction operators"

re RG

setrgbcolor

Set RGB colour for stroking operations

"Table 73 — Colour operators"

rg

setrgbcolor

Set RGB colour for nonstroking operations

"Table 73 — Colour operators"

Set colour rendering intent

"Table 56 — Graphics state operators"

ri s

closepath, stroke

Close and stroke path

"Table 59 — Path-painting operators"

S

stroke

Stroke path

"Table 59 — Path-painting operators"

SC

setcolor

(PDF 1.1) Set colour for stroking operations "Table 73 — Colour operators"

sc

setcolor

(PDF 1.1) Set colour for nonstroking operations

SCN

setcolor

(PDF 1.2) Set colour for stroking operations "Table 73 — Colour operators" (ICCBased and special colour spaces)

scn

setcolor

(PDF 1.2) Set colour for nonstroking operations (ICCBased and special colour spaces)

"Table 73 — Colour operators"

sh

shfill

(PDF 1.3) Paint area defined by shading pattern

"Table 76 — Shading operator"

T*

Move to start of next text line

"Table 106 — Text-positioning operators"

Tc

Set character spacing

"Table 103 — Text state operators"

846

"Table 73 — Colour operators"

© ISO 2020 – All rights reserved

ISO 32000-2:2020(E)

Operator PostScript Equivalent

Description

Table

Td

Move text position

"Table 106 — Text-positioning operators"

TD

Move text position and set leading

"Table 106 — Text-positioning operators"

Tf

selectfont

Set text font and size

"Table 103 — Text state operators"

Tj

show

Show text

"Table 107 — Text-showing operators"

TJ

Show text, allowing individual glyph positioning

"Table 107 — Text-showing operators"

TL

Set text leading

"Table 103 — Text state operators"

Tm

Set text matrix and text line matrix

"Table 106 — Text-positioning operators"

Tr

Set text rendering mode

"Table 103 — Text state operators"

Ts

Set text rise

"Table 103 — Text state operators"

Tw

Set word spacing

"Table 103 — Text state operators"

Tz

Set horizontal text scaling

"Table 103 — Text state operators"

v

curveto

Append curved segment to path (initial point replicated)

"Table 58 — Path construction operators"

w

setlinewidth

Set line width

"Table 56 — Graphics state operators"

W

clip

Set clipping path using non-zero winding number rule

"Table 60 — Clipping path operators"

W*

eoclip

Set clipping path using even-odd rule

"Table 60 — Clipping path operators"

y

curveto

Append curved segment to path (final point "Table 58 — Path construction replicated) operators"

'

Move to next line and show text

"Table 107 — Text-showing operators"

"

Set word and character spacing, move to next line, and show text

"Table 107 — Text-showing operators"

© ISO 2020 – All rights reserved

847

ISO 32000-2:2020(E)


Navigation: PDF20-Spec-14-Document | PDF20-Spec-Index | PDF20-Spec-Annex-B

Clone this wiki locally