Every month I need to submit a number of PDFs to our health insurance. For that, I need to add a cover page as the first page to each document.
The logic is very simple:
For <each PDF>
Make Copy of Cover Page with Unique Name
Append <each PDF> to Cover Page Copy
End For
Does anyone know how to append a PDF to another PDF?
A Python script may very well be easier - for what it’s worth, I also have an Automator script sitting around that takes two PDFs and appends the oldest-created one to the end of the newest one (the old PDF is not deleted). I use it with Hazel to attach the record of paying a bill to the original bill, mostly.
Evidently I can’t quickly upload it here because of the file format, but let me know if it would be useful to you and I can pop it up somewhere else and add a link.
(As well as “Combine PDF Pages” there is also a “Split PDF” action available in Automator which might be useful if you want to go that route. I haven’t experimented with it.)
I’d suggest a Python script as well. I’m no programmer but Python has quite a few libraries devoted to work with PDF that have been rather easy for me to work with and they are pretty well documented. I’ve used pyPDF to do a few things and I found it extremely useful: