Comment 18 for bug 779908

Revision history for this message
Jorge Sivil (jorgex0-o) wrote :

I just had a similar problem with java Exceptions.

My PDF was a single image PDF coming from an ActiveX Plugin that scans and converts to PDF.

The first problem was that PDFTK 1.44 was hanging with dump_data. That was fixed by appending a x0A next to the final x0D.

Then I've tried to update the info, and was getting exceptions.

It came to my attention that the info object number 7, wasn't being closed by endobj, but it wasn't the problem. But while looking at it, and comparing to a PDF that was the result of the failing PDF passed through exiftool and adding Author key (which was able to update it with PDFTK) I saw that instead of x0D, the working one had 0A to separate between sentences.

So I replaced the x0D IN and SURROUNDING the object number 7 (info object, metadata) and I was able to update it with PDFTK and with no exceptions.

Later, I just brought the original PDF again and just ran this: sed -i 's/\x0D/\x0A/' 5372.pdf

Then I tried dump_data and update_info and it was completely succesful.

Hope this can help someone.