6

I have two pdfs, A.pdf and B.pdf, each of which has some bookmarks (perhaps added by jpdfbookmarks). I'd like to concatenate them into one big file, AB.pdf. So I tried one of my favorite tools, pdftk:

pdftk A.pdf B.pdf cat output AB.pdf

But then AB.pdf doesn't have any bookmarks! Is there some way to concatenate pdfs in such a way that you retain the bookmarks? I prefer a Free, or at least free, command-line tool that will work on linux.

EvilChookie
  • 4,569
  • 1
  • 25
  • 34
  • See also: [Adobe Acrobat: How to batch to combine multiple pdf files? - Super User](https://superuser.com/questions/389760/adobe-acrobat-how-to-batch-to-combine-multiple-pdf-files) – user202729 Mar 26 '23 at 11:44

2 Answers2

5

Pdftk version 2.02 now merges bookmarks when concatenating PDFs, but only when whole PDF documents are being concatenated.

Sid Steward
  • 321
  • 2
  • 2
4

I haven't actually tried it, but from the documentation it looks like Multivalent might do it.

jPdf Tweak seems to do it to but it's not command-line. (I can't post the link because I'm a new user but it's on Sourceforge)

Anne-Laure
  • 209
  • 1
  • 2