THotPDF.BeginTaggedContentForStructure Method
Allocates the next MCID on the current page, opens a marked-content sequence, and attaches it to a structure element that already exists
Declaration
function BeginTaggedContentForStructure(
const Role: AnsiString;
StructElem: THPDFDictionaryObject;
const Lang: AnsiString = '';
const Alt: AnsiString = '';
const ActualText: AnsiString = '';
const ExpansionText: AnsiString = ''): Integer;
Return value
Returns the allocated non-negative MCID, or -1 when no current page exists
Usage notes
- Call
EndTaggedContentafter emitting the visible page content - The existing structure element receives an
MCRfor the current page instead of creating a duplicate logical element - Language, alternate text, replacement text, and expansion text are written into the marked-content properties when supplied
- An attachment failure closes the marked-content sequence before re-raising the exception