Linux commands to combine PDFs

I haven’t talked about much computer stuff on this blog, but today I found two useful commands on Linux for combining separate PDFs into a single file. The reason I wanted this is I’m going to try to get some additional outside playtesters and I figured the easier I can make the setup process the better. So I wanted to make half a dozen “starter” Posses and combine them into a single “playtesters package” file.

A very handy utility for PDFs, and a very simple command. This worked perfectly for merging a bunch of exported posse rosters from The Saloon into a single file.

pdftk filename1.pdf filename2.pdf cat output combined.pdf

The above command would combine “filename1.pdf” and “filename2.pdf” into combined.pdf.

This approach actually left some artifacts in the posse rosters, so I ended up not using it. Still worth knowing about:

gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combined.pdf -dBATCH filename1.pdf filename2.pdf

The above command would combine “filename1.pdf” and “filename2.pdf” into combined.pdf.

I exported every single saved posse currently on The Saloon, which ended up being 19 posses. Then using PDFTK I combined them into a single file that you can check out here. This would be perfect for making a printed folder of available posse choices, and is much easier compared to having a bunch of separate files.

Check out 19 sample posses (PDF) combined from separate files.

Pretty neat eh?

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: