While a content stream is parsed/created, operations may use the current parameters or modify them.
The device-dependent graphics state parameters have not been implemented!
See: PDF1.7 s8.4.1
A boolean specifying whether the current soft mask and alpha parameters should be interpreted as shape values or opacity values.
The current blend mode for the transparent imaging model.
The character spacing in unscaled text units.
It specifies the additional spacing used for the horizontal or vertical displacement of glyphs.
The current transformation matrix.
The alpha constant for non-stroking operations in the transparent imaging model.
The current color used for all other (i.e. non-stroking) painting operations.
The font for the text.
The font size.
The horizontal text scaling.
The value specifies the percentage of the normal width that should be used.
The leading in unscaled text units.
It specifies the distance between the baselines of adjacent lines of text.
The current line width in user space units.
The maximum line length of mitered line joins for stroked paths.
The rendering intent (only used for CIE-based colors; for the available values see
The scaled character spacing used in glyph displacement calculations.
This returns the character spacing multiplied by
See PDF1.7 s9.4.4
The scaled font size used in glyph displacement calculations.
This returns the font size multiplied by the scaling factor from glyph space to text space (0.001 for all fonts except Type3 fonts or the scaling specified in /FontMatrix for Type3 fonts) and multiplied by
See PDF1.7 s9.4.4,
The scaled horizontal scaling used in glyph displacement calculations.
Since the horizontal scaling attribute is stored in percent of 100, this method returns the correct value for calculations.
See PDF1.7 s9.4.4
The scaled word spacing used in glyph displacement calculations.
This returns the word spacing multiplied by
See PDF1.7 s9.4.4
The soft mask specifying the mask shape or mask opacity value to be used in the transparent imaging model.
The stroke adjustment for very small line width.
The alpha constant for stroking operations in the transparent imaging model.
The current color used for stroking operations during painting.
The current color space for stroking operations during painting.
The text knockout, a boolean value.
It specifies whether each glyph should be treated as separate elementary object for the purpose of color compositing in the transparent imaging model (knockout =
false) or if all glyphs together are treated as one elementary object (knockout =
The text rendering mode.
It determines if and how the glyphs of a text should be shown (for all available values see
The text rise distance in unscaled text units.
It specifies the distance that the baseline should be moved up or down from its default location.
The text line matrix which captures the state of the text matrix at the beginning of a line.
As with the text matrix the text line matrix is non-nil only when inside a text object.
The text matrix.
This attribute is non-nil only when inside a text object.
The word spacing in unscaled text units.
It works like the character spacing but is only applied to the ASCII space character.
Public Class Methods
Initializes the graphics state parameters to their default values.
Public Instance Methods
Restores the graphics state from the internal stack.
Raises an error if the stack is empty.
Saves the current graphics state on the internal stack.
true if the internal stack of saved graphic states contains entries.