[Bug 779908] Re: pdftk fails with "output" option
Jorge Sivil
jorgex0.o at gmail.com
Wed Apr 16 17:31:41 UTC 2014
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
Foundations Bugs, which is subscribed to gcj-4.5 in Ubuntu.
https://bugs.launchpad.net/bugs/779908
Title:
pdftk fails with "output" option
Status in “gcj-4.5” package in Ubuntu:
Confirmed
Status in “pdftk” package in Ubuntu:
Confirmed
Bug description:
Binary package hint: pdftk
When invoking pdftk with `pdftk a.pdf output /tmp/b.pdf` (I also tried
`pdftk a.pdf cat output /tmp/b.pdf`), pdftk fails with the following
messages:
Unhandled Java Exception:
Unhandled Java Exception:
java.lang.NullPointerException
at gnu.gcj.runtime.NameFinder.lookup(libgcj.so.11)
at java.lang.VMThrowable.getStackTrace(libgcj.so.11)
at java.lang.Throwable.getStackTrace(libgcj.so.11)
at java.lang.Throwable.stackTraceString(libgcj.so.11)
at java.lang.Throwable.printStackTrace(libgcj.so.11)
at java.lang.Throwable.printStackTrace(libgcj.so.11)
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: pdftk 1.44-1
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic i686
Architecture: i386
Date: Mon May 9 14:51:36 2011
ProcEnviron:
LANGUAGE=de_DE:en
PATH=(custom, user)
LANG=de_AT.utf8
LC_MESSAGES=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: pdftk
UpgradeStatus: Upgraded to natty on 2011-04-28 (11 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcj-4.5/+bug/779908/+subscriptions
More information about the foundations-bugs
mailing list