Package: pdftk
Version: 2.02-2
Severity: normal
Dear Maintainer,
* What led up to the situation?
I created some pdf's with OpenTax, which fills in pdf's for US
taxes. Those pdf's have forms in them so they can be filled out.
It's possible that OpenTax added additional annotations to the
forms so that they could be filled in programmatically.
I then took the output pdf's from OpenTax and filled in additional
information.
I also downloaded some forms directly from the IRS and filled them
out.
I believe I used okular for all forms I filled in manually.
Then I attempted to combine all the files using
pdftk KR_Fed_1040.pdf KR_Fed_1040_s?.pdf KR_Fed_8863.pdf cat output
KR_Fed_all.pdf
* What exactly did you do (or not do) that was effective (or
ineffective)?
I tried with fewer files and no wildcards.
I tried the version against which I'm filing this report. My first
try was with 1.44 on an older system.
I was running in a graphical environment on the older system;
non-graphical on the newer system.
None of these changes affected the result, which was ...
* What was the outcome of this action?
Error: Unexpected Exception in open_reader()
Unhandled Java Exception in main():
java.lang.NullPointerException
at gnu.gcj.runtime.NameFinder.lookup(libgcj.so.15)
at java.lang.Throwable.getStackTrace(libgcj.so.15)
at java.lang.Throwable.stackTraceString(libgcj.so.15)
at java.lang.Throwable.printStackTrace(libgcj.so.15)
at java.lang.Throwable.printStackTrace(libgcj.so.15)
I gather from other bug reports this is just a generic indicator
that something went wrong.
* What outcome did you expect instead?
That the requested output file, a concatentation of all the inputs,
would be output.
It seems likely this is related to 703377. That bug was thought to be
an evince bug, but with this report, relying on okular and a program
to fill in the form, it seems more likely that pdftk isn't very good
at forms. There are other form-related bugs: 792168.
As a further test I downloaded a blank form 1040 from
wget
https://www.irs.gov/pub/irs-pdf/f1040.pdf?_ga=1.196643116.1249814110.1473627121
(you can probably skip that part after the ?).
ross@ross-node1:~/Finance/tax2015$ pdftk f1040.pdf cat output test.pdf
# seems OK
# edit the file in okular by filling in the name fields, and save it as f104-test:
ross@ross-node1:~/Finance/tax2015$ pdftk f1040-test.pdf cat output test.pdf
Error: Unexpected Exception in open_reader()
java.lang.ClassCastException: pdftk.com.lowagie.text.pdf.PdfNull
cannot be cast to pdftk.com.lowagie.text.pdf.PdfDictionary
at pdftk.com.lowagie.text.pdf.PdfReader$PageRefs.iteratePages(pdftk)
at pdftk.com.lowagie.text.pdf.PdfReader$PageRefs.readPages(pdftk)
at pdftk.com.lowagie.text.pdf.PdfReader$PageRefs.<init>(pdftk)
at pdftk.com.lowagie.text.pdf.PdfReader.readPages(pdftk)
at pdftk.com.lowagie.text.pdf.PdfReader.readPdf(pdftk)
at pdftk.com.lowagie.text.pdf.PdfReader.<init>(pdftk)
at pdftk.com.lowagie.text.pdf.PdfReader.<init>(pdftk)
Error: Failed to open PDF file:
f1040-test.pdf
Errors encountered. No output created.
Done. Input errors, so no output created.
I have attached f1040-test.pdf.
I ran okular 0.14.3 on KDE 4.8.4 on the older system.
FWIW pdfshuffler simply removed all the information in the forms when
tried it.
-- System Information:
Debian Release: 8.6
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-4-amd64 (SMP w/40 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages pdftk depends on:
ii libc6 2.19-18+deb8u6
ii libgcc1 1:4.9.2-10
ii libgcj15 4.9.2-10
ii libstdc++6 4.9.2-10
pdftk recommends no packages.
Versions of packages pdftk suggests:
ii poppler-utils [xpdf-utils] 0.26.5-2+deb8u1
-- no debconf information