Class: AttrObj

PDFNet. AttrObj


new AttrObj()

An application or plug-in extension that processes logical structure can attach additional information, called attributes, to any structure element. The attribute information is held in one or more attribute objects associated with the structure element. An attribute object is a dictionary or stream that includes an entry identifying the application or plug-in that owns the attribute information. Other entries represent the attributes: the keys are attribute names, and values are the corresponding attribute values.

Methods


<static> create( [dict])

Initialize a AttrObj using an existing low-level Cos/SDF object.
Parameters:
Name Type Argument Description
dict PDFNet.Obj <optional>
a low-level (SDF/Cos) dictionary representing the attribute object.
Returns:
A promise that resolves to an object of type: "PDFNet.AttrObj"
Type
Promise.<PDFNet.AttrObj>

copy()

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

getOwner()

Returns:
A promise that resolves to the name of the application or plug-in extension owning the attribute data.
Type
Promise.<string>

getSDFObj()

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