modern-pdf-lib / beginArtifactWithType
Function: beginArtifactWithType()
beginArtifactWithType(
artifactType,subtype?):string
Defined in: src/accessibility/markedContent.ts:186
Generate an Artifact BDC operator with properties specifying the artifact type and other attributes.
Parameters
artifactType
The type of artifact: "Pagination", "Layout", or "Background".
"Pagination" | "Layout" | "Background"
subtype?
string
Optional subtype (e.g. "Header", "Footer", "Watermark").
Returns
string
The PDF operator string.