If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!
sudo apt-get install gs pdftk
Now we will see one example how to combine pdf files let us assume we have 1.pdf,2.pdf,3.pdf files and now we need to cobmine this files using the following command
gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combinedpdf.pdf -dBATCH 1.pdf 2.pdf 3.pdf
In the above command after “-sOUTPUTFILE=” type whatever name you want for the merged file (don’t forget to append .pdf to the end of the file name). Rename “1.pdf 2.pdf 3.pdf” to whatever your file names are (separate your file names with a space).
After you run the above command, a new PDF file called combinedpdf.pdf will be created with your individual files merged according to the order you list.
If you want to know more options available for gs command check man page
Tags: combine pdf files, combine pdf files example, combine pdf files in ubuntu, general, gs man page, install pdftk ubuntu, install ps ubuntu, Other LinuxYou may also be interested in...
January 7th, 2007 at 8:58 pm
Will the appended files be preceded by a pagebreak?
December 27th, 2007 at 8:02 pm
weiß ich leider nicht, müsstest du mal den author fragen
May 3rd, 2008 at 3:50 am
I’m a new ubuntu user. It’s dissapointing that none of the PDF gui programs in the list have this feature.
May 30th, 2008 at 2:21 pm
Works like a sharm, thanks!