Package Details: pdftk 2.02-18

Git Clone URL: (read-only)
Package Base: pdftk
Description: Pdftk is a simple tool for doing everyday things with PDF documents
Upstream URL:
Licenses: GPL
Submitter: Snowman
Maintainer: valandil
Last Packager: valandil
Votes: 404
Popularity: 4.374931
First Submitted: 2006-04-29 04:57
Last Updated: 2017-09-25 16:40

Pinned Comments

valandil commented on 2015-12-08 14:54

If you don't want to compile gcc-gcj, use pdftk-bin.

Latest Comments

haawda commented on 2017-10-04 06:36

Also in a clean chroot pdftk can be built.

I use extra-x86_64-build -c -r <your chroot> -- -I <path to package>/gcc-gcj-ecj-4.9-4-any.pkg.tar.xz

valandil commented on 2017-10-03 17:44

I wish there were a +1 button on those comments.

However, it's actually makepkg -C that deletes the src/folder.

severach commented on 2017-10-03 17:41

makepkg -C deletes the src folder. makepkg -scCfi is a good build command.

valandil commented on 2017-10-03 17:36

Builds fine on my end as well. Try what haawda said. If you're building with makepkg in a dedicated directory, make sure to delete ./src/ before building.

haawda commented on 2017-10-03 10:19

drankinatty, builds fine here. what is the md5sum of src/pdftk-2.02-dist/java/java_lib.jar on your side? Mine is 88134389b9d9e67f80e094c16373913d.

drankinatty commented on 2017-10-03 06:32

After update to community/gcc6-gcj, pdftk fails to build with the following error:

jar: internal error: pdftk/com/lowagie/*/*/*/*.class (No such file or directory)
make[1]: [Makefile:51: java_lib.o] Error 1 (ignored)
gcj-6 -Wno-all -fsource=1.3 -O2 -fPIC --encoding=UTF-8 --classpath="/usr/share/java/libgcj.jar:/home/david/arch/pkg/bld/pdftk/src/pdftk-2.02-dist/java:." -c java_lib.jar
In file included from <built-in>:31:0:
java_lib.jar:0:0: fatal error: bad zip/jar file java_lib.jar
compilation terminated.
make[1]: [Makefile:52: java_lib.o] Error 1 (ignored)
make[1]: Leaving directory '/home/david/arch/pkg/bld/pdftk/src/pdftk-2.02-dist/java'
make: *** No rule to make target '/home/david/arch/pkg/bld/pdftk/src/pdftk-2.02-dist/pdftk/../java/java_lib.o', needed by 'pdftk.o'. Stop.
==> ERROR: A failure occurred in build().

Is there some reason pdftk will not build against the new gcc6-gcj?

valandil commented on 2017-07-05 19:08

After checking the manual (, I think I'll go for pdftk-bin "$@", as severach recommends.

Sorry for the incessant updates.

severach commented on 2017-07-05 19:05

Shouldn't it be pdftk-bin "$@"

mkoloberdin commented on 2017-07-05 18:54


pdftk-bin should be called as

pdftk-bin $*

from the script to pass through all the arguments to the binary.

valandil commented on 2017-07-05 01:54

Good idea. It's now in the package.

All comments