GMode

Graphics mode

Each page object maintains a flag named "graphics mode". The graphics mode corresponds to the graphics-object of the PDF specification. The graphics mode is changed by invoking particular functions. The functions that can be invoked are decided by the value of the graphics mode.

Values

ValueMeaning
unknown0
pageDescription0x0001

Allowed operators:

  • General graphic state
  • Special graphic state
  • Color
  • Text state
pathObject0x0002

Allowed operators:

  • Path construction
textObject0x0004

Allowed operators:

  • Graphic state
  • Color
  • Text state
  • Text-shadowing
  • Text-positioning
clippingPath0x0008
shading0x0010
inlineImage0x0020
externalObject0x0040

Meta