LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   PDFTK dependency problem with PDF Chain in Fedora 21 (https://www.linuxquestions.org/questions/linux-software-2/pdftk-dependency-problem-with-pdf-chain-in-fedora-21-a-4175539784/)

penyuan 04-15-2015 08:33 AM

PDFTK dependency problem with PDF Chain in Fedora 21
 
Hello,

I was able to install and start PDF Chain 0.3.3 in Fedora 21, but when I try to perform any functions it tells me that "PDFTK-Command not found Error code: 32512".

According to YUM, I have the full pdftk package installed. So I tried running pdftk in a terminal, and it said: "pdftk: error while loading shared libraries: /usr/lib64/gcj/itext/itext-2.1.7.jar.so: cannot open shared object file: No such file or directory".

But also according to YUM, I have the itext and itext-core packages installed. Looking at the package filelist there aren't any files installed to /usr/lib64/gcj/itext/, maybe this is the problem? But even so, how do I troubleshoot this so I can use PDF Chain? Thanks!

knudfl 04-16-2015 01:56 AM

Looks like a bug.

'itext', Fedora 21 : Nothing but ...
/usr/share/doc/itext/{ four text files }.

'itext', Fedora 20 - 64bits :
/usr/lib64/gcj/itext/itext-2.1.7.jar.db
/usr/lib64/gcj/itext/itext-2.1.7.jar.so
http://dl.fedoraproject.org/pub/fedo...c20.x86_64.rpm

('itext-core' : /usr/share//**)

-

penyuan 04-16-2015 09:45 AM

Quote:

Originally Posted by knudfl (Post 5348153)
Looks like a bug.

'itext', Fedora 21 : Nothing but ...
/usr/share/doc/itext/{ four text files }.

'itext', Fedora 20 - 64bits :
/usr/lib64/gcj/itext/itext-2.1.7.jar.db
/usr/lib64/gcj/itext/itext-2.1.7.jar.so
http://dl.fedoraproject.org/pub/fedo...c20.x86_64.rpm

('itext-core' : /usr/share//**)

-

Wow thank you for discovering this! I have filed a bug report here:

https://bugzilla.redhat.com/show_bug.cgi?id=1212521

penyuan 04-17-2015 05:00 AM

Quote:

Originally Posted by penyuan (Post 5348365)

Apparently the required libgcj stuff is no longer included/supported in Fedora!
Quote:

--- Comment #1 from gil cattaneo <puntogil@libero.it> ---
the gcj support was removed
see
https://fedoraproject.org/wiki/Packa...s_that_use_JNI
and also
https://bugzilla.redhat.com/show_bug.cgi?id=236310#c5
https://bugzilla.redhat.com/show_bug.cgi?id=1016241#c1
I tried downloading the original PDFTK source to build it from scratch, but it also requires libgcj. Is there (1) another way to get PDFTK to work in Fedora 21+, or (2) something else that performs PDF Chain's functions without ultimately needing libgcj?

penyuan 04-17-2015 05:12 AM

OK, I found the following with Alternatives To:I found and installed PDF-Shuffler with YUM, and it worked! I suspect the other three should work, too. For now I will mark this thread as "solved".

knudfl 04-17-2015 07:41 AM

Re #5.

Another PDF tool that I found useful is "python-pdfminer" :
/usr/bin/dumppdf
/usr/bin/latin2ascii
/usr/bin/pdf2txt

/usr/bin/pdf2txt actually works, unlike some other 'pdf2txt' scripts.
The python-pdfminer pdf2txt preserves code OK from a PDF.

-

penyuan 04-17-2015 10:04 AM

Quote:

Originally Posted by knudfl (Post 5348830)
/usr/bin/pdf2txt actually works, unlike some other 'pdf2txt' scripts.
The python-pdfminer pdf2txt preserves code OK from a PDF.

Wow that is very impressive! Thanks for bringing this up, I found it and will note the URL here: http://www.unixuser.org/~euske/python/pdfminer/

knudfl 04-17-2015 10:33 AM

Re #7.

OK, if you are interested in pdfminer, it is available for Fedora :
http://dl.fedoraproject.org/pub/fedo...os/Packages/p/
# yum install python-pdfminer


All times are GMT -5. The time now is 12:29 AM.