How to combine/concatenate multiple PDF files with pdftk.
If you want to combine files, you could use the simple tool pdftk. pdftk is short for “pdf toolkit”.
Features of pdftk.
1. Merge PDF documents.
2. Split PDF pages into new documents.
3. Rotate PDF pages....
This can be easily installed using the yum utility as,
#yum install pdftk
Usage:-
Download 2 pdf files and concatenate
File 1-: ftp://ftp.sonicwall.com/pub/info/installation_guide.pdf
File 2:- http://gonda.nic.in/swangonda/pdf/ccna1.pdf
# pdftk installation_guide.pdf ccna1.pdf cat output newfile.pdf
# du -sch installation_guide.pdf ccna1.pdf newfile.pdf
2.9M installation_guide.pdf
5.4M ccna1.pdf
8.0M newfile.pdf
17M total
How to install pdftk older version pdftk-1.41.
This would require a dependency package libgcj-4.1.2-55.el5.x86_64.rpm. This can be downloaded and installed from the following location,
#wget ftp://195.220.108.108/linux/centos/5.11/os/x86_64/CentOS/libgcj-4.1.2-55.el5.x86_64.rpm
If the latest version of libgcj is already installed, do the following to unintsall and then re-install.
# rpm -e libgcj-4.4.7-11.el6.x86_64
#rpm -ivh libgcj-4.1.2-55.el5.x86_64.rpm
Then install the package,
#rpm -ivh pdftk-1.41-1.el5.rf.x86_64.rpm
# wget http://pkgs.repoforge.org/pdftk/pdftk-1.41-1.el5.rf.x86_64.rpm
Check the version using the command,
# /usr/bin/pdftk --version
pdftk 1.41 a Handy Tool for Manipulating PDF Documents
Copyright (C) 2003-06, Sid Steward - Please Visit: www.pdftk.com
This is free software; see the source code for copying conditions. There is
NO warranty, not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
To update to latest version, do an yum update,
# yum update libgcj
This install the latest version of libgcj and pdftk.
If you want to combine files, you could use the simple tool pdftk. pdftk is short for “pdf toolkit”.
Features of pdftk.
1. Merge PDF documents.
2. Split PDF pages into new documents.
3. Rotate PDF pages....
This can be easily installed using the yum utility as,
#yum install pdftk
Usage:-
Download 2 pdf files and concatenate
File 1-: ftp://ftp.sonicwall.com/pub/info/installation_guide.pdf
File 2:- http://gonda.nic.in/swangonda/pdf/ccna1.pdf
# pdftk installation_guide.pdf ccna1.pdf cat output newfile.pdf
# du -sch installation_guide.pdf ccna1.pdf newfile.pdf
2.9M installation_guide.pdf
5.4M ccna1.pdf
8.0M newfile.pdf
17M total
How to install pdftk older version pdftk-1.41.
This would require a dependency package libgcj-4.1.2-55.el5.x86_64.rpm. This can be downloaded and installed from the following location,
#wget ftp://195.220.108.108/linux/centos/5.11/os/x86_64/CentOS/libgcj-4.1.2-55.el5.x86_64.rpm
If the latest version of libgcj is already installed, do the following to unintsall and then re-install.
# rpm -e libgcj-4.4.7-11.el6.x86_64
#rpm -ivh libgcj-4.1.2-55.el5.x86_64.rpm
Then install the package,
#rpm -ivh pdftk-1.41-1.el5.rf.x86_64.rpm
# wget http://pkgs.repoforge.org/pdftk/pdftk-1.41-1.el5.rf.x86_64.rpm
Check the version using the command,
# /usr/bin/pdftk --version
pdftk 1.41 a Handy Tool for Manipulating PDF Documents
Copyright (C) 2003-06, Sid Steward - Please Visit: www.pdftk.com
This is free software; see the source code for copying conditions. There is
NO warranty, not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
To update to latest version, do an yum update,
# yum update libgcj
This install the latest version of libgcj and pdftk.