modern-pdf-lib / MarkedContentScope
Interface: MarkedContentScope
Defined in: src/accessibility/markedContent.ts:31
Represents a marked-content scope — provides the operator strings needed to open and close the scope in a content stream.
Properties
mcid
readonlymcid:number
Defined in: src/accessibility/markedContent.ts:33
The marked-content ID linking to the structure tree.
tag
readonlytag:string
Defined in: src/accessibility/markedContent.ts:35
The structure type tag.
Methods
begin()
begin():
string
Defined in: src/accessibility/markedContent.ts:41
Return the PDF operator string that begins this marked-content sequence. For tagged content with an MCID, this produces a BDC (begin marked-content with properties) operator.
Returns
string
end()
end():
string
Defined in: src/accessibility/markedContent.ts:46
Return the PDF operator string that ends this marked-content sequence (EMC).
Returns
string