Skip to main content
Known Participant
January 13, 2021
Question

how to remove annotation event handlers after registered.

as title.

 

thanks in advance. 

This topic is closed to new replies. Start a new post to keep the conversation going.

5 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. 

Translate
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.)

Translate
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?

Translate
Participant
March 28, 2022

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

Translate
Participant
March 8, 2022

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

Translate