ski_phreak
September 1st, 2014, 12:05 PM
I have a (k)ubuntu specific error when I run pdftk with wildcards trying to combine (cat) multiple PDFs.
I tested this with a laptop running SolydK (a fork of Mint) and no errors.
I tested this using copies of the files (rather than links) and got the same error.
>pdftk *.pdf cat output combined.pdf
Error: Unexpected Exception in open_reader()
Unhandled Java Exception:
java.lang.NullPointerException
at gnu.gcj.runtime.NameFinder.lookup(libgcj.so.14)
at java.lang.Throwable.getStackTrace(libgcj.so.14)
at java.lang.Throwable.stackTraceString(libgcj.so.14)
at java.lang.Throwable.printStackTrace(libgcj.so.14)
at java.lang.Throwable.printStackTrace(libgcj.so.14)
Combining the same files by typing each one individually bypasses the error (but there's no way I can afford to do so with all the sheetmusic I need to collate.)
>pdftk 01_Handel_Aria_celloBass.pdf 11_Bach_JesuJoyOfMansDesiring_celloBass_p01.pdf 11_Bach_JesuJoyOfMansDesiring_celloBass_p02.pdf Porter_cello_p2-02_NightAndDay.pdf Porter_cello_p2-03_NightAndDay.pdf cat output combined.pdf
I already tried recompiling pdftk from source in case my libraries and paths were different than it expected. I stopped short of recompiloing gcj since that wanted to recompile all of gcc.
>sudo apt-get -b source pdftk
>sudo dpkg -i pdftk_2.01-1_amd64.deb
I couldn't find anything like it out there in web-land. Any ideas?
Any command-line replacement that I could use instead of pdftk?
If it helps any, PDFChain fails with the same error. PDFShuffler works fine, but I really need a scriptable solution, not either gui.
Here's the system specs that may be relevant:
Kubuntu 14.04 LTS
>uname -a
Linux ymir-Dimension-E521 3.13.0-35-generic #62-Ubuntu SMP Fri Aug 15 01:58:42 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
>dpkg -l kde* = 4:4.13.3 on all the libs and apps.
>dpkg -l pdftk
ii pdftk 2.01-1 amd64 tool for manipulating PDF documents
>dpkg -l gcj*
ii gcj-4.8 4.8.2-19ubuntu1 amd64
ii gcj-4.8-jdk 4.8.2-19ubuntu1 amd64
ii gcj-4.8-jre 4.8.2-19ubuntu1 amd64
ii gcj-4.8-jre-headless 4.8.2-19ubuntu1 amd64
ii gcj-4.8-jre-lib 4.8.2-19ubuntu1 all
(and some earlier uninstalled versions)
Thanks in advance. (Linux users are awesome at helping out. (Beats anything that some Pakistani-outsources Windows call center can ever do...i.e. just blame at the OS, other installed SW, the phase of the moon, PEBCAK, id10T, or anything that might end the call quickest.)
I tested this with a laptop running SolydK (a fork of Mint) and no errors.
I tested this using copies of the files (rather than links) and got the same error.
>pdftk *.pdf cat output combined.pdf
Error: Unexpected Exception in open_reader()
Unhandled Java Exception:
java.lang.NullPointerException
at gnu.gcj.runtime.NameFinder.lookup(libgcj.so.14)
at java.lang.Throwable.getStackTrace(libgcj.so.14)
at java.lang.Throwable.stackTraceString(libgcj.so.14)
at java.lang.Throwable.printStackTrace(libgcj.so.14)
at java.lang.Throwable.printStackTrace(libgcj.so.14)
Combining the same files by typing each one individually bypasses the error (but there's no way I can afford to do so with all the sheetmusic I need to collate.)
>pdftk 01_Handel_Aria_celloBass.pdf 11_Bach_JesuJoyOfMansDesiring_celloBass_p01.pdf 11_Bach_JesuJoyOfMansDesiring_celloBass_p02.pdf Porter_cello_p2-02_NightAndDay.pdf Porter_cello_p2-03_NightAndDay.pdf cat output combined.pdf
I already tried recompiling pdftk from source in case my libraries and paths were different than it expected. I stopped short of recompiloing gcj since that wanted to recompile all of gcc.
>sudo apt-get -b source pdftk
>sudo dpkg -i pdftk_2.01-1_amd64.deb
I couldn't find anything like it out there in web-land. Any ideas?
Any command-line replacement that I could use instead of pdftk?
If it helps any, PDFChain fails with the same error. PDFShuffler works fine, but I really need a scriptable solution, not either gui.
Here's the system specs that may be relevant:
Kubuntu 14.04 LTS
>uname -a
Linux ymir-Dimension-E521 3.13.0-35-generic #62-Ubuntu SMP Fri Aug 15 01:58:42 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
>dpkg -l kde* = 4:4.13.3 on all the libs and apps.
>dpkg -l pdftk
ii pdftk 2.01-1 amd64 tool for manipulating PDF documents
>dpkg -l gcj*
ii gcj-4.8 4.8.2-19ubuntu1 amd64
ii gcj-4.8-jdk 4.8.2-19ubuntu1 amd64
ii gcj-4.8-jre 4.8.2-19ubuntu1 amd64
ii gcj-4.8-jre-headless 4.8.2-19ubuntu1 amd64
ii gcj-4.8-jre-lib 4.8.2-19ubuntu1 all
(and some earlier uninstalled versions)
Thanks in advance. (Linux users are awesome at helping out. (Beats anything that some Pakistani-outsources Windows call center can ever do...i.e. just blame at the OS, other installed SW, the phase of the moon, PEBCAK, id10T, or anything that might end the call quickest.)