I have two PDFs which contain a clickable table of contents. I want to append one to the other while keeping the links in the table of contents. I've tried using preview on macOS. This keeps the links for the first PDF but causes the links on the second PDF to break.
I've also tried using the Automator PDF combiner script on Mac.
I've not managed to find any solutions to this.
I'm looking for a Unix/Mac solution to this problem.