THotPDF.BeginTaggedContent Method
Begins the tagged content sequence for the Tagged PDF accessibility workflow. Keep the returned object or current graphics state balanced with the matching end call before finalising the page or document
Declaration
function BeginTaggedContent(const Role: AnsiString; Parent: THPDFDictionaryObject; const Lang: AnsiString= ''; const Alt: AnsiString= ''; const ActualText: AnsiString= ''; const ExpansionText: AnsiString= ''): THPDFDictionaryObject;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Role | Input used by BeginTaggedContent |
Parent | Input used by BeginTaggedContent |
Lang | Input used by BeginTaggedContent |
Alt | Input used by BeginTaggedContent |
ActualText | Input used by BeginTaggedContent |
ExpansionText | Input used by BeginTaggedContent |
Return value
Returns a THPDFDictionaryObject value
Usage notes
- Use this API in the Tagged PDF accessibility workflow before the affected page, resource, field, or catalog object is finalised
- Keep object names, field names, resource names, and returned handles stable until the document is finalised
- Keep begin and end calls balanced, provide alternate text for non-text content, and attach MCID values to the right page content