Annotate text within a pdf

I have a use case where I want to annotate certain text present in the pdf file.

The flow is simple as:

  1. Search for the input text in the pdf file
  2. Add a comment/annotation linked to the input text present in the pdf

The comment/annotation should not be free floating. It should be linked to the text in the pdf for easy referencing.

Also, the input text can span across multiple lines.

Hi @cacglo !
You can find helpful information in the article about TextMarkup Annotations.

The main idea:

  • use TextFragmentAbsorber to find text
  • add annotation using the rectangle’s coordinates from text fragments.