Note: The write functions in the PDSEdit API are not available in Adobe Reader.
typedef CosObj PDSRoleMap;
Makes a copy of a PDSRoleMap, making it the PDSRoleMap of the specified StructTreeRoot.
This may raise various exceptions.
void PDSRoleMapCopy(IN PDSRoleMap srcRoleMap, IN PDSTreeRoot dstTreeRoot, OUT PDSRoleMap *dstRoleMap);
srcRoleMap | The PDSRoleMap to copy.
|
dstTreeRoot | The structure tree root in which to place srcRoleMap.
|
dstRoleMap | (Filled by the method) If not
NULL, it points to the new, copied PDSRoleMap. |
ASBool PDSRoleMapDoesMap(IN PDSRoleMap roleMap, IN ASAtom src, IN ASAtom dst);
roleMap | IN/OUT The PDSRoleMap.
|
src | IN/OUT The ASAtom for an element type whose mapping is tested.
|
dst | IN/OUT The ASAtom for an element type. Note that this may be a standard element type.
|
is raised if an error is found in the PDF file.
|
ASAtom PDSRoleMapGetDirectMap(IN PDSRoleMap roleMap, IN ASAtom type);
roleMap | The PDSRoleMap.
|
type | The ASAtom for an element type whose mapping is found.
|
roleMap, or ASAtomNull if type has no mapping in roleMap. is raised if an error is found in the PDF file.
|
void PDSRoleMapMap(IN PDSRoleMap roleMap, IN ASAtom src, IN ASAtom dst);
roleMap | The PDSRoleMap in which to create a new mapping.
|
src | The element type to map to
dst. |
dst | The element type that
src maps onto. Note that this may be a standard element type, such as P. |
is raised if
src is already mapped. |
void PDSRoleMapUnMapDst(IN PDSRoleMap roleMap, IN ASAtom dst);
roleMap | The PDSRoleMap in which to un-map all element types that map onto the
dst element type. |
dst | The element type to which all mappings are removed. All element types that map to the
dst element type are unmapped. |
Makes the specified element type have no mapping.
This may raise various exceptions.
void PDSRoleMapUnMapSrc(IN PDSRoleMap roleMap, IN ASAtom src, IN ASBool fixupOthers);
roleMap | IN/OUT The PDSRoleMap in which to un-map the
src element type. |
src | IN/OUT The element type whose mapping is removed.
|
fixupOthers | IN/OUT If
true, any element type that was directly mapped to src is mapped to whatever src previously mapped to. If false, PDSRoleMapUnMapSrc() only un-maps src. |