Skip to content

modern-pdf-lib


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

StructureType

The structure type tag.

mcid

number

The marked-content identifier.

Returns

MarkedContentScope

A MarkedContentScope object.

Released under the MIT License.