Get a dictionary mapping the names of a particular type of resource to Atoms.

 

   

Syntax
 

[C#]
IDictionary<string, Atom> GetResourceMap(int id, string type)

[Visual Basic]
Function GetResourceMap(int id, string type) As IDictionary(Of Atom)

 

   

Params
 
Name Description
id The type of resource to be found.
type The ID of the resource containing object. This is typically the Page ID but you may also use a Form XObject ID.
return A dictionary mapping resource names to Atoms.

 

   

Notes
 

Get a dictionary mapping the names of a particular type of resource to Atoms. The Atoms returned are typically RefAtom objects referring to an IndirectObject. However some resource types (notably color spaces) may be referred to direct.

It is unusual to look up just one resource name. Typically one has a sequence of resource names from a content stream which all need resolving. For this reason it is best to use this function to obtain a map which can then be cached.

For resources referenced from the content stream of a page you should pass the ID of the page as this is the containing object. For resources referenced from a Form XObject stream you should pass the ID of the Form XObject as this is the containing object.

 

   

Example
 

None.