Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Resolve the damaged document error when opening PDF files mac os x

New Here ,
Sep 20, 2016 Sep 20, 2016

I have a problem, and it is discussed here:

Resolve damaged document error when opening PDF files

I thought I'd just follow the instructions, but I have a couple of issues/questions:

1) What is the path on my computer (Mac os 10.11.6)? Adobe Acrobat Reader DC, The version is: 2015.017.20053

2) Would it really be safe to do this, entering the code in terminal?

Thanks, Mark

error message.jpg

TOPICS
Acrobat SDK and JavaScript
2.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 20, 2016 Sep 20, 2016

You would not enter the information from the article in the console. What the articles shows are Windows registry keys, which need to be modified using the registry editor (regedit). On a Mac, you do not have a registry. Configuration information is stored in Plist files instead. The Plist file is stored in your Library/Preferences folder. To get to the Library folder in Finder, hold down the Alt key, and then go to Finder's "Go" menu. You will now see a "Library" element listed in the menu (when you release the Alt key again, that entry disappears). The file you are looking for in Library/Preferences is called com.adobe.Acrobat.Pro.plist (for Acrobat) or com.adobe.Reader.plist (for the free Adobe Reader) - you will need a Plist editor to actually edit it. Once you have this file loaded in an application that can edit Plist files, go to Root/DC/AVGeneral and create a new entry named ValidateBytesBeforeHeader of type boolean and set it to "NO". This is how it should work. I've never done it myself, so this is just based on the documentation.

This setting may not fix your problem. The header validation is only one of many reasons why you would see this error.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 20, 2016 Sep 20, 2016

Hi Karl Heinz 🙂

Thanks a lot for your reply! I tried to do what you wrote to me, but unfortunately it didn't help. I have modified the files "com.adobe.Reader_x86_9.0.plist" and com.adobe.Reader.plist. Do you have other suggestions? The file with this problem is stored the same place as when I added it to the pdf. Also, it seems strange to have to do these kind of things when using adobe software? I mean, it's not an open source project on linux or whatever..

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 20, 2016 Sep 20, 2016

As I said, this may not fix the problem.

Let's take a step back: The most likely scenario on a Mac for this error is that you tried to save a PDF file in the browser by using the browser's save function. This will always create a file without any content (it has a file size of 0). In the Finder, when you look for the document information, do you see a "real" file size (different from 0)? If you have a 0 byte long file, then there is nothing you can do to get the content back: You will have to download it again, but this time, move the mouse cursor in the browser window towards the bottom center until you see a control bar being displayed. You can use the save button on that bar to save your PDF file. If you have a file that has content, then it gets a bit more complicated, and, without seeing the file it's impossible to give any advice.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 20, 2016 Sep 20, 2016

That's a quick reply! 🙂

I think I forgot to explain this: The file that cannot be opened is a pdf file I attached to a pdf document using the attach file feature:

Skærmbillede 2016-09-20 kl. 22.49.05.jpg

Skærmbillede 2016-09-20 kl. 22.47.06.jpg

The file is not empty 😕

Skærmbillede 2016-09-20 kl. 22.42.11.jpg

Skærmbillede 2016-09-20 kl. 22.42.29.jpg

I've had this problem numerous times with other files. Could it be related to adobe reader dc not being the default viewer for pdf files on this mac? Just an idea. From what I remember, I'm able to open the file just after I attached it to the pdf I'm working on, but now after I closed adobe reader dc and opened the pdf again.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 20, 2016 Sep 20, 2016

I honestly don't know. Can you extract the file instead of opening it in Reader?

2016-09-20_17-00-04.png

Does that make a difference?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 20, 2016 Sep 20, 2016
LATEST

Thanks for the suggestion. When I save the file (on the desktop) as you showed me, the file cannot be opened - not by acrobat reader and also not by preview (default pdf reader on mac). The original file that I attached to the pdf can still be opened by both apps - so the problem lies in using the "attach file" feature, I guess? Somehow attaching a pdf to a pdf as a "comment" doesn't work. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines