Note: The write functions in the PDSEdit
API are not available in Adobe Reader.
typedef
CosObj
PDSClassMap
;
void
PDSClassMapAddAttrObj(
IN
PDSClassMap
classMap
,
IN
ASAtom
classAtom
,
IN
PDSAttrObj
attrObj
);
classMap | The PDSClassMap to which the specified attribute object is added.
|
classAtom | The ASAtom representing the class name.
|
attrObj | The attribute object to add to the class in
classAtom . |
is raised if an error is found in the PDF file.
|
Gets the attribute object associated with the specified class name at an index in the class.
If there is only one object and index is zero, that object is retrieved.
This may throw various exceptions.
void
PDSClassMapGetAttrObj(
IN
PDSClassMap
classMap
,
IN
ASAtom
classAtom
,
IN
ASInt32
index
,
OUT
PDSAttrObj
*
attrObj
);
classMap | The PDSClassMap.
|
classAtom | The ASAtom of a class name for which an associated attribute objects is found.
|
index | The index of the desired attribute object in the class.
|
attrObj | (Filled by the method) The attribute object at
index . Set it to CosNull if there is no attribute object at the specified location. |
Gets the number of attribute objects associated with a class name.
This may throw various exceptions.
ASInt32
PDSClassMapGetNumAttrObjs(
IN
PDSClassMap
classMap
,
IN
ASAtom
classAtom
);
classMap | IN/OUT The PDSClassMap.
|
classAtom | IN/OUT The ASAtom of a class name for which the number of associated attribute objects is found.
|
classAtom
. attrObj
in the entire classMap
. void
PDSClassMapRemoveAttrObj(
IN
PDSClassMap
classMap
,
IN
ASAtom
classAtom
,
IN
PDSAttrObj
attrObj
);
classMap | The PDSClassMap from which the specified attribute object is removed.
|
classAtom | The ASAtom of a class name for which the associated attribute object is found.
|
attrObj | The attribute object to remove from
classMap . |
is raised if an error is found in the PDF file.
|
Removes the specified class from the specified PDSClassMap, if it exists.
This may raise various exceptions.
void
PDSClassMapRemoveClass(
IN
PDSClassMap
classMap
,
IN
ASAtom
classAtom
);
classMap | IN/OUT The PDSClassMap from which a class is removed.
|
classAtom | IN/OUT The ASAtom representing the class to remove from
classMap . |