Ubuntu Linux : How to combine multiple PDF file

advertisement logo

 

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

CODE:
  1. 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"

Bookmark this article
  • NewsVine
  • Netvouz
  • Reddit
  • del.icio.us
  • StumbleUpon
  • Technorati
  • PDF
  • Digg
  • Facebook
  • Twitter
Tags: , , , , , , , ,

Keep updated with this website! : Subscribe to your email

Recommended Reading

5 smashing comments for this post.

  1. Dodjie Said:

    Any gui for this? If I were to merge lets say 10 with different .pdf file names, have to type each one by one?

  2. mypapit Said:

    yes it you have to type it one by one. dont worry, bash autocompletion is your friend

  3. Nick Humphrey Said:

    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

  4. Babi Said:

    There is a gui application for this. Check out couturier at
    http://sites.google.com/site/couturierapp/

  5. towi Said:

    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

Leave a Comment

Subscribe by email

Enter your Email

 

Bad Behavior has blocked 2959 access attempts in the last 7 days.

HostGator coupons mypapit's Profile on Ping.sg