Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

There are a lot of software in Windows to merge PDF files but how can we do the same in Ubuntu?

share|improve this question
    
I found this link –  Grijesh Chauhan Jun 5 at 9:18

9 Answers 9

up vote 60 down vote accepted

PDF-Shuffler Install PDF-Shuffler

If you want a tool with a simple GUI, try pdfshuffler. It allows for merging of PDFs as well as rearranging and deleting pages. For batch processing and/or more complicated tasks, pdftk is of course more powerful.

Screenshot of PDF-Shuffler

share|improve this answer
    
I tried this - it didn't work on 10.04 –  David Oneill Mar 13 '12 at 2:06
    
On 12.04, pdfshuffler always complains that there are "too many values to unpack", making it unusable. –  despens Apr 12 '13 at 12:15
    
For me it works under 12.04 64-bit, pdfshuffler version 0.6.0 –  user1251007 Jan 8 at 9:35
1  
Installs and works like a charm on 14.04. Thanks a bunch!! –  Zlatty Feb 12 at 20:26

pdftkInstall pdftk

To merge two pdf files, file1.pdf and file2.pdf:

pdftk file1.pdf file2.pdf cat output mergedfile.pdf

More info available here.

share|improve this answer
2  
pdftk is buggy - bugs.launchpad.net/ubuntu/+source/pdftk/+bug/779908. gs might be slow, but does the work perfectly [IgnitE's answer] –  Guanidene Apr 3 '13 at 11:05
    
Thanks! Pdftk does the simple, basic merging quite well. More than enough for my needs. YMMV. –  Marky Jun 27 at 9:57

Ghostscript is a package (available by default in Ubuntu) that enables you to view or print PostScript and PDF files to other formats, or to convert those files to other formats.
To use Ghostscript to combine PDF files, type something like the following:

gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=finished.pdf file1.pdf file2.pdf

Here is a brief explanation of the command:

gs         starts the Ghostscript program.
-dBATCH    once Ghostscript processes the PDF files, it should exit.
           If you don't include this option, Ghostscript will just keep running.
-dNOPAUSE  forces Ghostscript to process each page without pausing for user interaction.
-q         stops Ghostscript from displaying messages while it works
-sDEVICE=pdfwrite 
           tells Ghostscript to use its built-in PDF writer to process the files.
-sOutputFile=finished.pdf
           tells Ghostscript to save the combined PDF file with the specified name.

Your input files don't even need to be PDF files. You can also use PostScript or EPS files, or any mixture of the three.

There is a lot you can do with Ghostscript. You can read it's documentation for more details.

Source

share|improve this answer
1  
True, but it's incredibly slow. I just tried concatenating 45 x 400K, single-page PDFs. pdftk took 0m0.484s, gs took 1m32.898s (that's almost 200x slower) The file from gs was about 21% smaller though. –  aidan Mar 22 '13 at 6:47
    
this command also works if you use a wildcard for the list of files to be combined. for example, replace file1.pdf file2.pdf with file*.pdf –  Antonios May 29 at 13:58

PDF Chain Install PDF Chain

A very nice solution is PDFChain. It's GUI is a frontend of PDFTK where you can merge, split or even add some background to your PDF files.

share|improve this answer

Give PDFMod a try, it’s from the GNOME project:

https://wiki.gnome.org/Apps/PdfMod

share|improve this answer

You can use pdftk to merge and modify PDF documents in general. Alternatively there's an online service to do just that: http://www.pdfmerge.com/

share|improve this answer

You can also use jPDFTweak, pdfsam or pdfjam.

(That said, I use pdftk.)

share|improve this answer

Use pdfsam http://www.pdfsam.org/ it's very good for splitting and merging pdfs

share|improve this answer

You can use PDF Burger.com to merge several PDF files online.

share|improve this answer
    
Hi and welcome to Ask Ubuntu! While this may answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. –  edwin Aug 7 '13 at 19:13

protected by Eliah Kagan Sep 6 '13 at 7:02

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.