Skip to main content
Participant
October 19, 2022
Question

API to add highlight and comment to a PDF

  • October 19, 2022
  • 1 reply
  • 916 views

Looking for a way to highlight and phrase in pdf and add a annotation. Pretty simple for the UI, but need to achive this using code, as we would like to highlight predefined pieces of test and add highlighting and predefined comments in the PDF.

1 reply

try67
Community Expert
Community Expert
October 19, 2022

This is possible and was discussed many times in the past. There are built-in tools that will help you achieve it, such as the Search & Remove Text command. Doing it purely with a script is possible, but tricky, especially if the files are long and the search terms are more than one word long.

Participant
October 27, 2022

Hi TRY67,

Could you point me to a post I can use to highlight a particular phrase in a PDF and attach a predefined annotation to it via script/code/API. I did a lot of searching on adobe forms and in google and didn't come up with anything. A example or sample to strart would be great, thank you again for your assistance.