Friday, April 24, 2009

How to merge or combine PDF files with Ghostscript

Ghostscript is an interpreter for the PostScript language and for PDF.

To merge or combine two or more PDF files, presuming that gswin32 (for Windows) or gs (for Linux) is in path,

For Windows


gswin32 -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combine.pdf 
-dBATCH file1.pdf file2.pdf file3.pdf

For Linux


gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combine.pdf 
-dBATCH file1.pdf file2.pdf file3.pdf

3 comments :

  1. SALam..tuan,,nk bantu ka...projek kaiatan dengan komputer juga....cuba tuan cadangkan ,apa yang perlu kami buat...dengn kos x sampai rm1000...

    ReplyDelete
  2. Bina perisian menggunakan bahan sumber terbuka.

    ReplyDelete
  3. Nice tool, thanks for sharing!

    ReplyDelete