Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 3 down vote accepted

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)

share|improve this answer
"java -classpath Multivalent20060102.jar tool.pdf.Merge -samedoc A.pdf B.pdf" does the trick. – Anton Geraschenko Aug 21 '09 at 19:37

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.