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.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/779908

Title:
  pdftk fails with "output" option

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcj-4.5/+bug/779908/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to