Ask Your Question

Pdftk substitute for Fedora 21 and 22 [closed]

asked 2015-08-04 13:43:30 -0500

Waslon gravatar image

updated 2015-10-10 15:43:25 -0500

mether gravatar image

Which program can I use to substitute the following command?

pdftk file_A background file_B.pdf output new_file.pdf

The idea is use file_A.pdf as background of the file_B?

Unfortunately, pdftk no longer works in Fedora 21 and 22.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by davidva
close date 2016-08-27 09:11:07.150588

3 Answers

Sort by ยป oldest newest most voted

answered 2015-09-07 08:32:30 -0500

Federico gravatar image

updated 2016-06-10 05:49:58 -0500

A similar replacement seems to be QPDF, which is in the normal repositories and seems in active development. The command line interface is different but mentally easy enough to map (and perhaps more intuitive in the long run).

For instance, I wanted to replace a pdftk cat command and qpdf --pages seems to do well enough: my command

pdftk input A=A.pdf B=B.pdf C=C.pdf cat A2-5 A8-10 B3-4 B16 B15 B14 B17-18 B25 A7 A6 B19-23 C13 B28 C3-10 C12 C15 C17-22 C24-26 C56 output D.pdf


qpdf --empty --pages A.pdf 2-5,8-10 B.pdf 3-4,16,15,14,17-18,25 A.pdf 7 B.pdf 19-23 C.pdf 13 B.pdf 28 C.pdf 3-10,12,15,17-22,24-26,56 -- D.pdf

(Suggestion via HAMS on alt.os.linux.)

edit flag offensive delete link more


Thx! It's useful.

ding3my gravatar imageding3my ( 2017-01-08 08:58:35 -0500 )edit

answered 2016-08-26 21:40:46 -0500

jgc210482 gravatar image

Hi Guys:

Download these files:

dnf install *rpm

and volila, pdftk on Fedora 23 !!

And works fine!!

Sorry my very very bad english...

edit flag offensive delete link more


The first link is broken. But this one works:

Asymptote gravatar imageAsymptote ( 2016-09-07 17:55:16 -0500 )edit

pdfchain in Fedora 23: A. B. C. dnf in libgcj-gcc6-6.2.1+r239849-49.3.x86_64.rpm dnf in pdftk-2.02-7.3.x86_64.rpm D. E. F. ./configure etc

lucodealethea gravatar imagelucodealethea ( 2016-10-28 08:46:23 -0500 )edit

D. step dnf in gtkmm30-devel-3.18.1-1.fc23.x86_64.rpm F. ./configure make sudo make install

lucodealethea gravatar imagelucodealethea ( 2016-10-28 08:48:58 -0500 )edit

answered 2015-08-04 15:13:45 -0500

sideburns gravatar image

Welcome to ask.fedora. Checking, it appears that the most recent version of pdftk is for Fedora 19, but you say that it doesn't work with more recent versions of Fedora. You can probably get a more recent version from the pdftk website as an .rpm and install it or, if that doesn't work, you can get the src.rpm and build it yourself. Please let us know if this works or not, because there may be other ways to get what you need, but there's no point in going down that road unless we have to.

edit flag offensive delete link more


Not very useful, because they don't ship the missing dependency: "Next, install libgcj, on which pdftk depends". See also

Federico gravatar imageFederico ( 2015-09-07 07:49:26 -0500 )edit

Question Tools

1 follower


Asked: 2015-08-04 13:43:30 -0500

Seen: 9,702 times

Last updated: Aug 26 '16