modern-pdf-lib / createMarkedContentScope
Function: createMarkedContentScope()
createMarkedContentScope(
tag,mcid):MarkedContentScope
Defined in: src/accessibility/markedContent.ts:147
Create a MarkedContentScope object for a given tag and MCID.
The scope provides begin() and end() methods to generate the matching operator strings. This is useful when you want to incrementally build content between the markers.
Parameters
tag
The structure type tag.
mcid
number
The marked-content identifier.
Returns
A MarkedContentScope object.