LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-15-2015, 08:33 AM   #1
penyuan
Member
 
Registered: Oct 2009
Distribution: Scientific Linux 6
Posts: 190

Rep: Reputation: 19
Question 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!
 
Old 04-16-2015, 01:56 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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//**)

-
 
1 members found this post helpful.
Old 04-16-2015, 09:45 AM   #3
penyuan
Member
 
Registered: Oct 2009
Distribution: Scientific Linux 6
Posts: 190

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by knudfl View Post
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
 
Old 04-17-2015, 05:00 AM   #4
penyuan
Member
 
Registered: Oct 2009
Distribution: Scientific Linux 6
Posts: 190

Original Poster
Rep: Reputation: 19
Question

Quote:
Originally Posted by penyuan View Post
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?
 
Old 04-17-2015, 05:12 AM   #5
penyuan
Member
 
Registered: Oct 2009
Distribution: Scientific Linux 6
Posts: 190

Original Poster
Rep: Reputation: 19
Post

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".
 
Old 04-17-2015, 07:41 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.

-
 
1 members found this post helpful.
Old 04-17-2015, 10:04 AM   #7
penyuan
Member
 
Registered: Oct 2009
Distribution: Scientific Linux 6
Posts: 190

Original Poster
Rep: Reputation: 19
Smile

Quote:
Originally Posted by knudfl View Post
/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/
 
1 members found this post helpful.
Old 04-17-2015, 10:33 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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
 
1 members found this post helpful.
  


Reply

Tags
dependencies, fedora, pdf, pdftk, python-pdfminer


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Work with PDF on Linux with PDFTk LXer Syndicated Linux News 0 06-09-2013 10:51 PM
Not able to distro-sync after preupgrade from Fedora 13 to Fedora 14 (Yum dependency problem) prudhivisekhar Fedora 2 10-07-2011 02:27 AM
[SOLVED] Trying to install 'PDF-Shuffler' and have a GTK 2.x dependency question Robert.Thompson Slackware 12 03-18-2011 12:49 PM
fedora update problem: Missing dependency gecko-libs gyc Fedora 11 07-22-2008 12:04 PM
Using pdftk to get all first pages of many pdf's into one pdf document zest n zeal Linux - Newbie 1 01-15-2008 09:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration