sempdf
sempdf v1.9.1Type aliases

Type Alias: ParagraphTextAnnotation

sempdf v1.9.1


sempdf / ParagraphTextAnnotation

type ParagraphTextAnnotation = 
  | ParagraphHighlightAnnotation
  | ParagraphUnderlineAnnotation
  | ParagraphStrikeOutAnnotation
  | ParagraphSquigglyAnnotation
  | ParagraphNoteAnnotation
  | ParagraphLinkAnnotation;

Defined in: src/types.ts:1708

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.