Skip to main content
Participant
September 26, 2022
Question

This file is damaged, but is being repaired.

  • September 26, 2022
  • 1 reply
  • 2572 views

Every day I view some PDF files generated by a problematic system used in my corporate. Every time I view them, a small window titled "Reconfigure" and says "This file is damaged, but is being repaired." in it appears and disappears. No big problem until now. However, while closing the file Adobe keeps asking "Do you want to save changes to "..pdf" before closing?". I don't want this warning. The only solution that I could find until now is selecting [Adobe Acrobat Preferences > Security (Enhanced) > Protected View --> All files]. However this generates a yellow bar at the top which is stating the case and shrinks the view. A better solution?

This topic has been closed for replies.

1 reply

radzmar
Community Expert
Community Expert
September 26, 2022

Sounds like Acrobat repaired a structural error within the PDF. In conclusion the PDF has to be saved to keep the changes. 

With JavaScript  you can force Acrobat to close a PDF without saving it.

this.closeDoc(true);



However. you would have to open at least JavaScript console and type in this command. It might be faster to save and close the PDF with the shortcuts [Ctrl]+[S] and Ctrl]+[W].