Page 1 of 1

Combine multiple PDF documents into one document

PostPosted: Thu May 29, 2008 10:45 am
by forhire
I needed to combine some PDF documents. I knew you could do it with GhostScript. I found this that showed the syntax:
http://www.debianadmin.com/combine-mult ... linux.html

But would it work in windows? Yes, it will like this:
C:\Progra~1\gs\gs8.54\bin\gswin32 -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combinedpdf.pdf -dBATCH 1.pdf 2.pdf 3.pdf 4.pdf 5.pdf 6.pdf 7.pdf 8.pdf 9.pdf 10.pdf 11.pdf 12.pdf 13.pdf 14.pdf 15.pdf 16.pdf 17.pdf 18.pdf 19.pdf

Simple. I like it.

PostPosted: Thu Aug 07, 2008 12:22 pm
by forhire
I had some documents that I wanted portrait instead of landscape. Ghostscript was looking at the text and rotating them. This did the trick:

-dAutoRotatePages=/None

gs -dAutoRotatePages=/None -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=paf2008.pdf -dBATCH 1.pdf 2.pdf 3.pdf

This also works with ps2pdf.