Combine multiple PDF documents into one document

This forum is devoted to showing off and discussing open source and free software we use and/or think is worth while. If you're looking for software, post your need here and we'll make a suggestion.

Moderator: forhire

Combine multiple PDF documents into one document

Postby forhire » Thu May 29, 2008 10:45 am

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.
forhire
Site Admin
 
Posts: 376
Joined: Thu Jun 24, 2004 7:56 pm
Location: Morton, Washington

Postby forhire » Thu Aug 07, 2008 12:22 pm

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.
forhire
Site Admin
 
Posts: 376
Joined: Thu Jun 24, 2004 7:56 pm
Location: Morton, Washington


Return to Open Source Software

Who is online

Users browsing this forum: No registered users and 13 guests

cron