It's that time of year again: time for insurance policies to renew! I'm weird and like to keep all my mailings/communications...err...ever...yes, I'm a packrat. But, I like to have everything filed away in the appropriate place too. So computers come and save the day and allow for electronic versions of everything to be preserved and nicely stashed away.
Insurance packets tend to be kind of...thick & voluminous. Fortunately, my current carrier provides everything electronically. Unfortunately, it has a tendency to do this by having what seems like every page being a separate document file. So I desire to combine those documents to recreate a mailed packet.
The document files are all PDF's. There's a great old utility called Ghostscript available to manipulate PDF's. So, download & install it. Then, on Windows, run:
& 'C:\Program Files\gs\gs10.06.0\bin\gswin64c.exe' -dBATCH -dNOPAUSE -q '-sDEVICE=pdfwrite' '-sOutputFile=output.pdf' '.\1.pdf' '.\2.pdf' '.\3.pdf' '.\07055752-0cb5-4f5d-9d5a-73407c082148-802883995.pdf' '.\a75ad885-7212-4dec-8c9b-0cddd8560420-802884000.pdf' '.\6 4491c9dc-e2e2-4a2b-9087-839715bf30e5-802884006.pdf' '.\7 5a2f8497-c68e-4481-8497-74e2452949bf-802884011.pdf' '.\8 fece05b8-80ff-4af5-86e6-c6c8ad631645-802884016.pdf' '.\9 dbcb1788-f2b4-4e5e-9688-3e4b7ff22a2a-802884020.pdf' '.\10 5c3fc995-2014-4211-85db-df0f928cda47-802884023.pdf'
to produce an output.pdf file combining the files in the order they're listed on the command line.
(file names are examples only; remember to replace with the actual file names to merge; documenting this as a reminder to myself where I put Ghostscript & what the merge arguments are)