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
BedrockMission!

Learn More

View all

Sign in to view all badges

Automatically save PDF on close

Avatar

Avatar
Validate 1
Level 1
joshuab24944986
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
joshuab24944986
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
joshuab24944986
Level 1

03-12-2015

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 "event.target.dirty = false; " in just about any event that might make sense.

What am I missing?

Replies

Avatar

Avatar
Establish
MVP
_Bruce_Robertson
MVP

Likes

271 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Establish
Give Back 25
Give Back 10
Give Back 5
Give Back 3
View profile

Avatar
Establish
MVP
_Bruce_Robertson
MVP

Likes

271 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Establish
Give Back 25
Give Back 10
Give Back 5
Give Back 3
View profile
_Bruce_Robertson
MVP

08-12-2015

Hi,

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 https://sites.google.com/site/livecycledesignercookbooks/home/Clear%20Dirty%20Flag.pdf?attredirects=...

Bruce