Previous Next


                                                      219
             SECTION 4.3                                                               Graphics State




                                     TABLE 4.7 Graphics state operators
OPERANDS                OPERATOR     DESCRIPTION

—                       q            Save the current graphics state on the graphics state stack (see “Graphics
                                     State Stack” on page 214).

—                       Q            Restore the graphics state by removing the most recently saved state from
                                     the stack and making it the current state (see “Graphics State Stack” on
                                     page 214).

a b c d e f             cm           Modify the current transformation matrix (CTM) by concatenating the
                                     specified matrix (see Section 4.2.1, “Coordinate Spaces”). Although the
                                     operands specify a matrix, they are written as six separate numbers, not as
                                     an array.

lineWidth               w            Set the line width in the graphics state (see “Line Width” on page 215).

lineCap                 J            Set the line cap style in the graphics state (see “Line Cap Style” on page
                                     216).

lineJoin                j            Set the line join style in the graphics state (see “Line Join Style” on page
                                     216).

miterLimit              M            Set the miter limit in the graphics state (see “Miter Limit” on page 217).

dashArray dashPhase     d            Set the line dash pattern in the graphics state (see “Line Dash Pattern” on
                                     page 217).

intent                  ri           (PDF 1.1) Set the color rendering intent in the graphics state (see “Render-
                                     ing Intents” on page 260).

flatness                i            Set the flatness tolerance in the graphics state (see Section 6.5.1, “Flatness
                                     Tolerance”). flatness is a number in the range 0 to 100; a value of 0 speci-
                                     fies the output device’s default flatness tolerance.

dictName                gs           (PDF 1.2) Set the specified parameters in the graphics state. dictName is
                                     the name of a graphics state parameter dictionary in the ExtGState subdic-
                                     tionary of the current resource dictionary (see the next section).


    4.3.4 Graphics State Parameter Dictionaries

             While some parameters in the graphics state can be set with individual operators,
             as shown in Table 4.7, others cannot. The latter can only be set with the generic
             graphics state operator gs (PDF 1.2). The operand supplied to this operator is the

Previous Next