Skip to content

zeropdf v1.3.0


zeropdf / ParagraphHighlightAnnotation

Interface: ParagraphHighlightAnnotation

Defined in: src/types.ts:1446

Highlight a substring of a paragraph.

Properties

PropertyModifierTypeDescriptionDefined in
color?readonlyPdfColorFill color of the highlight rectangle.src/types.ts:1453
matchreadonlystringSubstring to locate in the rendered paragraph text.src/types.ts:1449
occurrence?readonlynumberZero-based occurrence index to annotate; defaults to every occurrence.src/types.ts:1451
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:1455
tag?readonly"Annot" | "Artifact"Structure tag override for the highlight annotation.src/types.ts:1460
typereadonly"highlight"-src/types.ts:1447

Released under the ISC license.