Skip to main content
Participant
July 11, 2018
Question

Adobe Reader cannot read PDF

  • July 11, 2018
  • 1 reply
  • 707 views

programmatically i created a PDF, which contains object streams and encryption.

Many PDF viewers can read it and don't flag it as corrupted as:

- Foxit

- Google chrome

- pdf.js

- Nuance

- Nitro

- iText

But Adobe products claim, that the file is corrupt and don't open it. I tried most recent Adobe Reader and Adobe Acrobat

The PDF file can be downloaded here: https://www.doxisafe.me/#!/retrieve/ivqkli

Can anyone give me a clue, what inside the PDF is corrupt? Currently i am blind to see it.

This topic has been closed for replies.

1 reply

Inspiring
July 11, 2018

How was this PDF created?

There maybe an error in the encryption method.

Participant
July 11, 2018

I created the pdf by an own library. The encryption without object streams is working also in Adobe. Also a PDF generated without encryption, but with object streams is working. Just the combination isn't.

Participant
July 12, 2018

Today i found a solution, that it seems that Adobe just requires the Catalog dictionary not to be in an object stream, when the file is encrypted. This is not following the pdf spec, which claims, that only the following objects shouldn't be inside the object stream:

  • Stream objects
  • Objects with a generation number other than zero
  • A document’s encryption dictionary (see 7.6, "Encryption")
  • An object representing the value of the Length entry in an object stream dictionary
  • In linearized files (see Annex F), the document catalog, the linearization dictionary, and page objects shall not appear in an object stream.

My file is not linearized, so the last condition shall not apply.