THotPDF.SetStructureClassMapEntry Method
Sets structure class map entry state for subsequent Tagged PDF accessibility output. The setting affects later page drawing, page dictionary entries, conformance metadata, or text emission rather than already-written content
Declaration
procedure SetStructureClassMapEntry(const AClass: AnsiString; AttrDict: THPDFDictionaryObject);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
AClass | Class name referenced from the /C entry of structure elements (see SetStructureElementClass); must not be empty |
AttrDict | Attribute dictionary that elements of this class inherit, or nil to remove the class entry (the last removal drops /ClassMap) |
Return value
This member does not return a value
Usage notes
- Use this API in the Tagged PDF accessibility workflow before the affected page, resource, field, or catalog object is finalized
- The document takes ownership of
AttrDict; do not free it. The same dictionary may be registered under several class names, or again under the same name, and removing one entry leaves the others intact - Keep object names, field names, resource names, and returned handles stable until the document is finalized
- Keep begin and end calls balanced, provide alternate text for non-text content, and attach MCID values to the right page content