Appearance
zeropdf / ParagraphTextAnnotation
Type Alias: ParagraphTextAnnotation
ts
type ParagraphTextAnnotation =
| ParagraphHighlightAnnotation
| ParagraphUnderlineAnnotation
| ParagraphStrikeOutAnnotation
| ParagraphSquigglyAnnotation
| ParagraphNoteAnnotation
| ParagraphLinkAnnotation;Defined in: src/types.ts:1437
Inline annotation anchored to a substring of a paragraph's rendered text.
The flow engine searches the laid-out text for match. The matching substring's exact rendered position becomes the annotation rectangle, so the annotation covers the precise word(s) regardless of wrapping or font.
If match spans multiple wrapped lines, one rectangle is emitted per line. If occurrence is omitted, every occurrence in the paragraph is annotated.