Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Automatically save PDF on close


Level 2

How do I keep the pdf from asking the user if they want to save the file when I close the document?

I have used " = false; " in just about any event that might make sense.

What am I missing?

0 Replies


Level 10


I would have guess that preSave would be the right place, but the dialog seems to be called before that.  If you only need to support Reader 9.1 or later you could use event propagation and clear the flag on every exit event.

Here's a sample