[]
Represents a base structure attribute.
Conceptually an Attr is a dictionary whose keys are PDF names and whose values are PDF objects. Use Attr#putValue and Attr#removeValue to manipulate the entries.
new Attr(): Attr;
Creates a new empty Attr object.
Attr
ObjectBase.constructor
new Attr(om): Attr;
Creates a new empty Attr object.
An object manager that controls the lifetime of the Attr object.
Attr
ObjectBase.constructor
get id(): number;
Gets the reference to the object.
number
get om(): ObjectManager;
Gets the owner ObjectManager instance.
free(): void;
Detaches the object from the ObjectManager and deallocates its memory, if possible.
void
putValue(key, value): void;
Sets the value associated with the specified key.
string
The entry key (a PDF name).
The value to set.
void
rebind(omTo): void;
Rebinds the object from the current ObjectManager to the specified one.
The new ObjectManager for the object.
void
removeValue(key): void;
Removes the value associated with the specified key.
string
The entry key (a PDF name).
void