modern-pdf-lib / wrapInMarkedContent
Function: wrapInMarkedContent()
wrapInMarkedContent(
operators,tag,mcid):string
Defined in: src/accessibility/markedContent.ts:128
Wrap existing content-stream operators in a marked-content sequence.
This is a convenience function that prepends a BDC operator and appends an EMC operator around the given operator string.
Parameters
operators
string
The existing PDF operator string(s) to wrap.
tag
The structure type tag.
mcid
number
The marked-content identifier.
Returns
string
The wrapped operator string.