THotPDF.BeginTaggedParagraph Method
Begins the tagged paragraph 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 BeginTaggedParagraph(Parent: THPDFDictionaryObject; const Lang: AnsiString= ''; const ActualText: AnsiString= ''): THPDFDictionaryObject;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Parent | Parent structure element, normally a Document, Sect, Div, or other semantic container |
Lang | Optional BCP 47 language tag written to the marked-content properties |
ActualText | Optional replacement text used for extraction and assistive technology |
Return value
Returns the created /P structure element connected to the current page through its allocated MCID
Usage notes
- Draw the visible paragraph content after this call and close it with
EndTaggedParagraph - The helper allocates the page MCID and updates the structure parent tree automatically
- Use pagination artifacts rather than structure elements for running headers, footers, watermarks, and page numbers