Ubuntu Linux : How to combine multiple PDF file
Posted by mypapit on 14 Dec 2007 in Tips & Guides, Ubuntu/Debian
|
|
Here’s how to combine multiple PDF file on Ubuntu.
First install ghostscript and pdftk from Ubuntu repository :
apt-get install gs pdftk
Then, using ghostscript, combile all the pdf files you desired into one file, using this command
s -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combined_file.pdf -dBATCH file1.pdf file2.pdf file3.pdf
The command will produced the combined pdf output on “combine_file.pdf”
Tags: acrobat, adobe acrobat, document, ghostscript, linux, opensource, pdf, reader, ubuntu
Keep updated with the latest posts, be a part of over 1,000 subscribers! :
Subscribe to your email
You might also want to read...
- Generate EAN,UPC,ISBN barcodes in Ubuntu / Debian Linux
- RSS2PDF – Free Online RSS and Atom to PDF Generator
- How to Start a Business / Panduan Memulakan Perniagaan
- PHP – Generate PDF on-the-fly with FPDF
- Howto make SSH listens on multiple port
- Upcoming OpenOffice.org 3.0 supports Microsoft OpenXML (docx) out of the box
- Get Mandriva Linux Inside Community Magazine !


September 29th, 2008 at 8:53 pm
Any gui for this? If I were to merge lets say 10 with different .pdf file names, have to type each one by one?
September 30th, 2008 at 8:31 am
yes it you have to type it one by one. dont worry, bash autocompletion is your friend
March 29th, 2009 at 5:29 am
i have no friggin idea why your code example is written the way it is, but here is how it should look as of today:
pdftk file1.pdf file2.pdf cat output output.pdf
July 25th, 2009 at 4:22 am
There is a gui application for this. Check out couturier at
http://sites.google.com/site/couturierapp/
October 21st, 2009 at 4:44 pm
it is not “s” but “gs” of couse, that you mean.
Thus
gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combined_file.pdf -dBATCH file1.pdf file2.pdf file3.pdf