20080309 merging multiple pdf files into one - plembo/onemoretech GitHub Wiki

title: Merging multiple PDF files into one link: https://onemoretech.wordpress.com/2008/03/09/merging-multiple-pdf-files-into-one/ author: lembobro description: post_id: 555 created: 2008/03/09 21:37:50 created_gmt: 2008/03/09 21:37:50 comment_status: open post_name: merging-multiple-pdf-files-into-one status: publish post_type: post

Merging multiple PDF files into one

Just the kind of thing you really need to know how to do on the Sunday afternoon you’re collating tax documents for the accountant. Here’s the command line (using ghostscript):

gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=olpc.pdf -dBATCH 2007_OLPC-1.pdf 
 2007_OLPC-2.pdf

Where “olpc.pdf” is your final merged (in this case, 2 page) .pdf, and “2007_OLPC-1.pdf” and “2007_OLPC-2.pdf” were the single page originals. Don’t you just love open source? See Francis Wright's PDF FAQ for more. Note: Keep in mind that if you’re confined to the Windows plaform in your daily work, you can still use ghostcript to do things like this. All you have to do is install Cygwin from Red Hat and be sure to check the ghostcript package for installation.

Copyright 2004-2019 Phil Lembo