Il giorno gio, 18/02/2016 alle 17.34 +0100, Yamaban ha scritto:> On Thu, 18 Feb 2016 16:07, Dario Lesca wrote: > > > 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: > > > > http://i.stack.imgur.com/OBsqX.png > > > > 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. > > Original code is located here: > ? https://www.pdflabs.com/docs/install-pdftk-on-redhat-or-centos/ > > including recipe to compile from source. > > ATM there is no "ready to install" package directly for Centos 7, > but try the Centos /RHEL 6 package from there before > doing the full build circus (requires installed libgcj).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: ????????libgmp.so.3()(64bit) necessario a libgcj-4.4.7-16.el6.x86_64 # rpm -qf /usr/lib64/libgmp.so.10 gmp-6.0.0-12.el7_1.x86_64 I have adding --nodeps and it's able to install it. If there are not other solution, I will use this method Thanks --? Dario Lesca (inviato dal mio Linux Fedora 23 Workstation)
On 18/02/16 17:20, Dario Lesca wrote:> > ATM there is no "ready to install" package directly for Centos 7, > but try the Centos /RHEL 6 package from there before > doing the full build circus (requires installed libgcj). > 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: > libgmp.so.3()(64bit) necessario a libgcj-4.4.7-16.el6.x86_64 > > # rpm -qf /usr/lib64/libgmp.so.10 > gmp-6.0.0-12.el7_1.x86_64 > > I have adding --nodeps and it's able to install it. > > If there are not other solution, I will use this method > > Thanks > > -- > Dario Lesca > (inviato dal mio Linux Fedora 23 Workstation) > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centosI would recommend that you do *not* do this. Installing C6 packages on C7 is a really bad idea. Instead perhaps try using cpdf: http://community.coherentpdf.com/ -- regards H
Il giorno gio, 18/02/2016 alle 21.04 +0000, Harold Toms ha scritto:> I would recommend that you do *not* do this. Installing C6 packages > on C7 is a really bad idea. Instead perhaps try using cpdf: > > http://community.coherentpdf.com/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: # http://community.coherentpdf.com/ $ sudo yum install ocaml-ocamldoc ocaml-findlib -y # $ mkdir ~/cpdf # $ cd ~/cpdf $ wget https://github.com/johnwhitington/camlpdf/archive/master.zip -O camlpdf-master.zip $ wget https://github.com/johnwhitington/cpdf-source/archive/master. zip -O cpdf-source-master.zip $ sh -xc 'unzip camlpdf-master.zip; cd camlpdf-master && make && sudo make install' $ sh -xc 'unzip cpdf-source-master.zip; 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)