Combine Multiple PDFs Into One File

From time to time it is very useful to combine multiple PDF documents into one file.

Install gs (ghostscript) and pdftk (tool for manipulating PDF documents)

sudo aptitude install gs pdftk

Now we will see one example, which shows how to combine a few pdf files; 1.pdf,2.pdf,3.pdf.

gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combined_pdf.pdf -dBATCH 1.pdf 2.pdf 3.pdf

If you want to know more options available for gs command check the gs man page

Related posts:

  1. dos2unix on Ubuntu and Debian
  2. Crack pdf password with pdfcrack
  3. Bash shortcuts tips and tricks
  4. Track file downloads and outgoing links with Google Analytics
  5. HackerGuide: Crack Password Encrypted Zip-files
  6. Howto: Install Ruby and Rails on Debian or Ubuntu
  7. Upgrading to Ubuntu 9.04
  8. How to mount bin / cue image files in Linux
  9. Executing SQL Statements from a Text File
  10. Crack zip password with fcrackzip

Comments