PDFix SDK  6.5.0
PdsRoleMap Struct Referenceabstract

PdsRoleMap class. More...

Public Member Functions

virtual bool DoesMap (const wchar_t *src, const wchar_t *dst)=0
 
virtual int GetDirectMap (const wchar_t *type, wchar_t *buffer, int len)=0
 

Detailed Description

PdsRoleMap class.

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 PdsStructTree.

Member Function Documentation

◆ DoesMap()

virtual bool PdsRoleMap::DoesMap ( const wchar_t *  src,
const wchar_t *  dst 
)
pure virtual

Determines whether the specified PdsRoleMap provides any mapping path for two given element types.

Parameters
class_nameThe string of a class name for which an associated attribute objects is found.
srcThe string for an element type whose mapping is tested.
dstThe string for an element type.
Returns
true if an mapping path was found, false otherwise.

◆ GetDirectMap()

virtual int PdsRoleMap::GetDirectMap ( const wchar_t *  type,
wchar_t *  buffer,
int  len 
)
pure virtual

Gets the type, if any, directly mapped in the specified PdsRoleMap for the given element type.

Parameters
typeThe string for an element type whose mapping is found
buffer(filled by method) If the buffer is null function returns required length of string
lenLength of a buffer to be filled in.
Returns
Number of characters written into buffer of required length.