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.
pdftk file1.pdf file2.pdf cat output merged.pdf
suits your needs. Standard license for CLI commands is GPL-2+ : pdflabs.com/tools/pdftk-server . Appeared to be doing it fine on Debian