Class: ClassMap

Core.PDFNet. ClassMap


new ClassMap()

Methods


<static> create( [dict])

Initialize a ClassMap using an existing low-level Cos/SDF ClassMap object.
Parameters:
Name Type Argument Description
dict Core.PDFNet.Obj <optional>
a low-level (SDF/Cos) ClassMap dictionary. Note: This constructor does not copy any data, but is instead the logical equivalent of a type cast.
Returns:
A promise that resolves to an object of type: "PDFNet.ClassMap"
Type
Promise.<Core.PDFNet.ClassMap>

copy()

Copy Constructor
Returns:
A promise that resolves to an object of type: "PDFNet.ClassMap"
Type
Promise.<Core.PDFNet.ClassMap>

getSDFObj()

Returns the ClassMap dictionary.
Returns:
A promise that resolves to the object to the underlying SDF/Cos object.
Type
Promise.<Core.PDFNet.Obj>

isValid()

Returns:
A promise that resolves to true if this is a valid (non-null) ClassMap, false otherwise. If the function returns false the underlying SDF/Cos object is null or is not valid and the ClassMap object should be treated as a null object.
Type
Promise.<boolean>