sempdf
sempdf v1.9.1Interfaces

Interface: ParagraphHighlightAnnotation

sempdf v1.9.1


sempdf / ParagraphHighlightAnnotation

Defined in: src/types.ts:1717

Highlight a substring of a paragraph.

Properties

PropertyModifierTypeDescriptionDefined in
color?readonlyPdfColorFill color of the highlight rectangle.src/types.ts:1724
matchreadonlystringSubstring to locate in the rendered paragraph text.src/types.ts:1720
occurrence?readonlynumberZero-based occurrence index to annotate; defaults to every occurrence.src/types.ts:1722
padding?readonly| number | { bottom?: number; left?: number; right?: number; top?: number; }Extra padding in points added around the rect on each side. Defaults to 2 above/below, 0 left/right.src/types.ts:1726
tag?readonlyAnnotTagOrArtifactStructure tag override for the highlight annotation.src/types.ts:1731
typereadonly"highlight"-src/types.ts:1718

On this page