I have some code in my document action "WillClose", but my script is called only once. Why this is happening?
I have Acrobat DC.
The script will only run once when the document is about to close. When would you expect the script to run? You will have to open the document again, and then try to close to have the script triggered again.
Thanks, even though I have some changes and when Adobe ask me if I want to save my changes I answer "Cancel"
Ah you mean WillClose is not called again if you cancel closing, then close again? Odd, I‘d expect WillClose to be called only after an affirmative prompt, hence still only once but when it really closes.
Test Screen Name,
that's exactly what I want.
According to Adobe, WillClose is trigger BEFORE.
WillClose "Triggered immediately before the PDF is closed."
thank you all for your responses. Help me a lot.
I've seen this issue reported before. It seems to be a bug in Acrobat.