Install pdftk from sources in Linux RedHat
Yesterday I talked about pdftk and how to modify pdf metadata using this software.
Well, today I’ll show you how to install this great tool in your Redhat systems. In my case, I am using:
$ uname -r 2.6.18-164.9.1.el5
This are the steps I followed:
- Download the last version available:
wget http://www.pdfhacks.com/pdftk/pdftk-1.41.tar.gz
- Extract the tar contents:
tar -xzvf pdftk-1.41.tar.gz
- Now change to that directory, check your corresponding Makefile’s variables (TOOLPATH, VERSUFF which in my case are empty) and then proceed to compile:
cd pdftk-1.41/pdftk make -f Makefile.RedHat strip pdftk
Note the last strip command? It is done to reduce the resulting filesize
- Last step, complete the installation (as root):
make -f Makefile.RedHat install
Now you can use pdftk
Related posts: