Previous Next


                                                     154
             CHAPTER 3                                                                       Syntax



             In the context of a given content stream, the term current resource dictionary
             refers to the resource dictionary associated with the stream in one of the ways
             described above.

             Each key in a resource dictionary is the name of a resource type, as shown in
             Table 3.30. The corresponding values are as follows:

             • For resource type ProcSet, the value is an array of procedure set names
             • For all other resource types, the value is a subdictionary. Each key in the sub-
               dictionary is the name of a specific resource, and the corresponding value is a
               PDF object associated with the name.

                                 TABLE 3.30 Entries in a resource dictionary
KEY               TYPE            VALUE

ExtGState         dictionary      (Optional) A dictionary that maps resource names to graphics state parame-
                                  ter dictionaries (see Section 4.3.4, “Graphics State Parameter Dictionaries”).

ColorSpace        dictionary      (Optional) A dictionary that maps each resource name to either the name of a
                                  device-dependent color space or an array describing a color space (see Sec-
                                  tion 4.5, “Color Spaces”).

Pattern           dictionary      (Optional) A dictionary that maps resource names to pattern objects (see Sec-
                                  tion 4.6, “Patterns”).

Shading           dictionary      (Optional; PDF 1.3) A dictionary that maps resource names to shading dic-
                                  tionaries (see “Shading Dictionaries” on page 304).

XObject           dictionary      (Optional) A dictionary that maps resource names to external objects (see
                                  Section 4.7, “External Objects”).

Font              dictionary      (Optional) A dictionary that maps resource names to font dictionaries (see
                                  Chapter 5).

ProcSet           array           (Optional) An array of predefined procedure set names (see Section 10.1,
                                  “Procedure Sets”).

Properties        dictionary      (Optional; PDF 1.2) A dictionary that maps resource names to property list
                                  dictionaries for marked content (see Section 10.5.1, “Property Lists”).

             Example 3.16 shows a resource dictionary containing procedure sets, fonts, and
             external objects. The procedure sets are specified by an array, as described in
             Section 10.1, “Procedure Sets.” The fonts are specified with a subdictionary

Previous Next