Layer | PDSEdit_Layer |
Object | PDSRoleMap |
Each structure element must have a structure type. The definition of such types is application-specific. In addition, PDF 1.3 defines a standard set of structure types for logical structure in PDF documents. The role map (PDSRoleMap) maps application-specific element types to the standard element types that have a similar function. There is only one PDSRoleMap per document, associated with the PDSTreeRoot.
Typedef | ||
---|---|---|
PDSRoleMap
Represents mappings of structural element types present in a PDF document to standard element types having similar uses. There is one PDSClassMap per document, associated with the PDSTreeRoot.
|
Method | ||
---|---|---|
Makes a copy of a PDSRoleMap, making it the PDSRoleMap of the specified StructTreeRoot.
|
||
Determines whether the specified PDSRoleMap provides any mapping path for two given element types.
|
||
Gets the type, if any, directly mapped in the specified PDSRoleMap for the given element type.
|
||
Maps an element type (src) to another element type (dst) in the specified PDSRoleMap.
|
||
Makes the specified element type have no mapping.
|
||
Makes the specified element type have no mapping.
|
PDSRoleMap |
Product availability: All |
Platform availability: All |
typedef CosObj PDSRoleMap;
Represents mappings of structural element types present in a PDF document to standard element types having similar uses. There is one PDSClassMap per document, associated with the PDSTreeRoot.
File: PDSExpT.h |
Line: 138 |
PDSRoleMapCopy | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
void PDSRoleMapCopy(INPDSRoleMap srcRoleMap, INPDSTreeRoot dstTreeRoot, OUTPDSRoleMap* dstRoleMap)
Makes a copy of a PDSRoleMap, making it the PDSRoleMap of the specified StructTreeRoot.
This may raise various exceptions.
Parameters
srcRoleMap — | The PDSRoleMap to copy. |
|
dstTreeRoot — | The structure tree root in which to place srcRoleMap. |
|
dstRoleMap — | (Filled by the method) If not |
See Also
Since
File: PDSWriteProcs.h |
Line: 687 |
PDSRoleMapDoesMap | () |
Product availability: All |
Platform availability: All |
ASBool PDSRoleMapDoesMap(INPDSRoleMap roleMap, INASAtom src, INASAtom dst)
Determines whether the specified PDSRoleMap provides any mapping path for two given element types.
Parameters
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. |
|
See Also
Exceptions
Since
File: PDSReadProcs.h |
Line: 586 |
PDSRoleMapGetDirectMap | () |
Product availability: All |
Platform availability: All |
ASAtom PDSRoleMapGetDirectMap(INPDSRoleMap roleMap, INASAtom type)
Gets the type, if any, directly mapped in the specified PDSRoleMap for the given element type.
Parameters
roleMap — | The PDSRoleMap. |
|
type — |
The ASAtom for the equivalent type specified in |
See Also
Exceptions
Since
File: PDSReadProcs.h |
Line: 568 |
PDSRoleMapMap | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
void PDSRoleMapMap(INPDSRoleMap roleMap, INASAtom src, INASAtom dst)
Maps an element type (src
) to another element type (dst
) in the specified PDSRoleMap.
Parameters
roleMap — | The PDSRoleMap in which to create a new mapping. |
|
src — | The element type to map to |
|
dst — | The element type that |
See Also
Exceptions
Since
File: PDSWriteProcs.h |
Line: 643 |
PDSRoleMapUnMapDst | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
void PDSRoleMapUnMapDst(INPDSRoleMap roleMap, INASAtom dst)
Makes the specified element type have no mapping.
Parameters
roleMap — | The PDSRoleMap in which to un-map all element types that map onto the |
|
dst — | The element type to which all mappings are removed. All element types that map to the |
See Also
Exceptions
Since
File: PDSWriteProcs.h |
Line: 671 |
PDSRoleMapUnMapSrc | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
void PDSRoleMapUnMapSrc(INPDSRoleMap roleMap, INASAtom src, INASBool fixupOthers)
Makes the specified element type have no mapping.
This may raise various exceptions.
Parameters
roleMap — | IN/OUT The PDSRoleMap in which to un-map the |
|
src — | IN/OUT The element type whose mapping is removed. |
|
fixupOthers — | IN/OUT If |
See Also
Since
File: PDSWriteProcs.h |
Line: 659 |