PDFTK with Ubuntu Bionic 18.04

Hi Folks,

the package PDFTK is not included intoUbuntu 18.04 Bionic anymore. So as I ask the developer if they will upgrade the package to make it running under Bionic.

The Answer was clear and NO. So I have to look for an alternate to PDFTK, because I want to run a batch job, where I include a watermark to the existing PDF.

But after 2 days of searching there is no working tool for that issue. So I look for a way to implement PDFTK into Bionic. The mayor problem is the gcc version, pdftk needs 4.6 bionic has 6. so the tool is not running under Bionix from default.

I personaly mad a decision to try to activate the old Artfull sources to install PDFTK and after that remove the Artful list again.

SO I update my sources.list and include the following lines:

deb http://no.archive.ubuntu.com/ubuntu/ artful main restricted
deb http://no.archive.ubuntu.com/ubuntu/ artful-updates main restricted
deb http://no.archive.ubuntu.com/ubuntu/ artful universe
deb http://no.archive.ubuntu.com/ubuntu/ artful-updates universe
deb http://no.archive.ubuntu.com/ubuntu/ artful multiverse
deb http://no.archive.ubuntu.com/ubuntu/ artful-updates multiverse
deb http://no.archive.ubuntu.com/ubuntu/ artful-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu artful-security main restricted
deb http://security.ubuntu.com/ubuntu artful-security universe
deb http://security.ubuntu.com/ubuntu artful-security multiverse

After that I run a simple

sudo apt update

to make the changes take effect.

Then install pdftk via

sudo apt install pdftk


Then remove the Artful sources from the source.list again and this is how I get PDFTK running under Bionic.

This is a real dirty way to get it working but until I found a working alternate I have to use it.

If anybody has a tool, where I can add a watermark into a PDF without transfering the PDF to PS, then please contact me.

If for your purpose a convert to PS is OK then I would propose to check out .

Github PDF-Bash-Tools



1 thought on “PDFTK with Ubuntu Bionic 18.04

%d bloggers like this: