Class: ClassMap

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 PDFNet.Obj <optional>
a low-level (SDF/Cos) ClassMap dictionary.
Returns:
A promise that resolves to an object of type: "PDFNet.ClassMap"
Type
Promise.<PDFNet.ClassMap>

copy()

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

getSDFObj()

Returns the ClassMap dictionary.
Returns:
A promise that resolves to the object to the underlying SDF/Cos object.
Type
Promise.<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>