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.
PDFTK
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.
Ghostscript
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.
Example
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?