modern-pdf-lib / beginMarkedContentWithProperties
Function: beginMarkedContentWithProperties()
beginMarkedContentWithProperties(
tag,properties):string
Defined in: src/accessibility/markedContent.ts:79
Generate a BDC (begin marked-content with properties) operator.
The properties dictionary is serialized inline. This is used when you need to associate additional data (like MCID) with the marked content.
Produces: /<tag> <</MCID n /key1 value1 ...>> BDC\n
Parameters
tag
string
The marked-content tag.
properties
Record<string, unknown>
Key-value pairs for the properties dictionary.
Returns
string
The PDF operator string.