THotPDF.RegisterAnnotForStructure Method
Registers a reusable annot for structure resource for the Tagged PDF accessibility workflow. Call it before page commands reference the resource name so color, pattern, font, image, or profile data is available in the PDF resource tree
Declaration
procedure RegisterAnnotForStructure(AnnotDict: THPDFDictionaryObject; StructElem: THPDFDictionaryObject);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
AnnotDict | Input used by RegisterAnnotForStructure |
StructElem | Input used by RegisterAnnotForStructure |
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
- 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