Substitute Pdftk With Other Command

Home » CentOS » Substitute Pdftk With Other Command
CentOS 5 Comments

Hi, I must migrate a CentOS5 server on CentOS7

On server CentOS5 there is a shell procedure witch add to PDF a timestamp like this example:

with this command:
$ pdftk input.pdf stamp overlay.pdf output stamped.pdf

Into CentOS7 pdftk it is no longer allowed

Someone knows some other command to replace it or other ways to do this?

Or how I can install pdftk on CentOS7.

Many thanks for your help.

5 thoughts on - Substitute Pdftk With Other Command

  • Il giorno gio, 18/02/2016 alle 17.34 +0100, Yamaban ha scritto:

    For this solution it’s necessary to break some dependency:

    # rpm -ivh  ./libgcj-4.4.7-16.el6.x86_64.rpm ./pdftk-2.02-1.el6.x86_64.rpm 
    avvertimento: ./libgcj-4.4.7-16.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, ID chiave c105b9de: NOKEY
    errore: Dipendenze fallite:
   necessario a libgcj-4.4.7-16.el6.x86_64

    # rpm -qf /usr/lib64/

    I have adding –nodeps and it’s able to install it.

    If there are not other solution, I will use this method


    Dario Lesca
    (inviato dal mio Linux Fedora 23 Workstation)

  • Il giorno gio, 18/02/2016 alle 21.04 +0000, Harold Toms ha scritto:
    Ok, cpdf is very interesting, thank you, I did not know it. I have build it on my CentOS 7 + EPEL with this simple procedure:
    $ sudo yum install ocaml-ocamldoc ocaml-findlib -y

    # $ mkdir ~/cpdf
    # $ cd ~/cpdf
    $ wget
    $ wget
    zip -O
    $ sh -xc ‘unzip; cd camlpdf-master && make &&
    sudo make install’
    $ sh -xc ‘unzip; cd cpdf-source-master &&
    make && sudo make install’
    $ sudo cp -a cpdf-source-master/cpdf  /usr/local/bin/cpdf
    $ cpdf -version Now I can substitute pdftk with cpdf … Many thanks

    Dario Lesca
    (inviato dal mio Linux Fedora 23 Workstation)

    • Ciao Dario, sono bloccato in questo punto, puoi darmi una mano? Non riesco a fare il make e il make install sul secondo zip:

      [root@infopoint cpdf-source-master]# make

      make[1]: Entering directory `/root/cpdf/cpdf-source-master’
      ocamlfind ocamlopt -package camlpdf -c -annot -g -w -3 -annot
      File “”, line 1619, characters 30-57:
      Error: This expression has type
      (string, string) Hashtbl.t * (int, int) Hashtbl.t *
      (int * int, int) Hashtbl.t * (string, int) Hashtbl.t
      but an expression was expected of type ‘a * ‘b * ‘c
      make[1]: *** [cpdf.cmx] Error 2
      make[1]: Leaving directory `/root/cpdf/cpdf-source-master’
      make: *** [native-code] Error 2

      [root@infopoint cpdf-source-master]#

      Ti ringrazio.