Is it possible to get the list of annotation filter result programmatically?

I want to hide the annotation on pdf as the same result of the filter here. can I get the list of annotation after filter somehow?

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:


Hi @nuttakit,

What you can do is add an event listener on the annotationFilterChanged event. And anytime the event is fired, you can then programatically get all the annotations from the annotation manager and hide the ones that match the filter. When your filter is cleared you can then show all annotations.

Here are some relevant APIs that will help you:

Best Regards,
Armando Bollain
Software Developer
PDFTron Systems Inc.