How to Combine PDF Files on Unix

Unix users typically use the "cat" command to combine two files. However, that will not work with .pdf files. Instead, the open source programs Ghostscript and PDFtk can be used. Ghostscript is an interpreter for the Portable Document Format (PDF). PDFtk is a tool kit for merging, splitting and attaching files to PDF documents. Both software applications are command line applications but there are graphical front ends available for Ghostscript. The software is available for Unix, Linux, Mac OSX and Windows.

Things You'll Need

  • Ghostscript
  • PDFtk
Show More

Instructions

    • 1

      Download and install Ghostscript and PDFtk (see Resources).

    • 2

      Open a terminal window.

    • 3

      Type the command "cd PDF_Files/" to navigate to the directory containing your .pdf files. Change "PDF_Files" to the correct directory name.

    • 4

      Type the command "gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=test.pdf -dBATCH fileA.pdf fileB.pdf" to merge the .pdf files into one file. Change "test.pdf," "fileA.pdf" and "fileB.pdf" to reflect the names of your files.

    • 5

      Type "gs test.pdf" to view the combined file.

Related Searches:

References

Resources

Comments

You May Also Like

Related Ads

Featured