title: Merge PDFs and retain their index (xref-Table?)
body: <p>I want to merge two PDF-files retaining the index (the xref-table) of both files. </p>
  
  <p>I wanted to write my thesis in LaTeX, except for the covering page which is rather fancy and complex. Now I want to merge the covering page of my thesis with the contents, but I could not accomplish this job with retaining the index using the following tools:</p>
  
  <ul>
  <li>pdftk and the</li>
  <li>tools presented in <a href="https://stackoverflow.com/questions/848513/lossless-merging-of-pdfs-php">Lossless merging of PDFs (PHP)</a>.</li>
  </ul>
  
  <p>The PDF Toolkit (pdftk) provides a "dump_data" command with which it is possible to extract metadata information including the bookmarks. This data can be brought into a pdf-file using the "update_info" command which works, except for the bookmarks.</p>
  
  <p>Can anybody out there give me a tip on how to work that out?</p>
  
  <p>Thanks for helping me, Rainer</p>