How to concatenate PDFs

From KIP Wiki
Revision as of 14:27, 17 November 2008 by Hlaier (talk | contribs)
(diff) ↠Older revision | Latest revision (diff) | Newer revision → (diff)
⧼kip-jumptonavigation⧽⧼kip-jumptosearch⧽

With GhostScript one can concatenate PDFs without pain: just use the following command line:


gs -q -sPAPERSIZE=a4 -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=newPDFname.pdf PDF1.pdf PDF2.pdf PDF3.pdf


So all the PDFs (PDF1.pdf etc.) are combined in "newPDFname" One can even use a wildcard to combine all the PDFs in a directory by just replacing (PDF1.pdf PDF2.pdf....) with *.pdf