Skip to content

modern-pdf-lib


modern-pdf-lib / beginMarkedContent

Function: beginMarkedContent()

beginMarkedContent(tag): string

Defined in: src/accessibility/markedContent.ts:62

Generate a BMC (begin marked content) operator with just a tag.

This is the simplest form of marked content — no properties dict. Produces: /<tag> BMC\n

Parameters

tag

string

The marked-content tag (e.g. "Span", "Artifact").

Returns

string

The PDF operator string.

Released under the MIT License.