Skip to main content
Known Participant
Jan 13, 2021 7:26 PM UTC
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
Apr 4, 2022 9:53 PM UTC

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
Apr 5, 2022 3:05 PM UTC

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
Apr 1, 2022 9:41 AM UTC

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

Translate
Participant
Mar 28, 2022 7:55 AM UTC

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

Translate
Participant
Mar 8, 2022 9:41 AM UTC

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

Translate