Skip to main content
Known Participant
January 13, 2021
Question

how to remove annotation event handlers after registered.

  • January 13, 2021
  • 4 replies
  • 518 views

as title.

 

thanks in advance. 

This topic has been closed for replies.

4 replies

cfjedimaster
Inspiring
April 4, 2022

I don't believe there is a way of doing this, but I'm going to confirm. In the meantime, a workaround could be used. If you use a global variable that signifies, "I care about this event", you could check that value in the callback and return early if the value is false. Let me know if that doesn't make sense. 

cfjedimaster
Inspiring
April 5, 2022

I confirmed with engineering that there is not a way to do this. If folks need an example of the workaround I mentioned above, just ask. I also added an enhancement request specifically for this support. (That's not a promise it will be added, but I shared this forum post in the request.)

Akshay Rohatgi
Adobe Employee
Adobe Employee
April 1, 2022

Hi @tangyun 
Thanks for using PDF Embed API. Can you please share the snippet for better understanding?

Participant
March 28, 2022

Useful post. I'm waiting for answers. Thanks a lot. five nights at freddy's 

Participant
March 8, 2022

Any answer on this? This would espcially help on react platforms inside useEffect handlers