title: How to generate a Table of Contents "TOC" with iText?
body: <p>I've created a document with some <code>Chapter</code>s.</p>
  
  <p>How to generate a TOC for this document?</p>
  
  <p>It should look like this:</p>
  
  <pre><code>TOC:
  Chapter 1                        3
  Chapter 2                        4
  Chapter 3                        6
  Chapter 4                        9
  Chapter 5                       10
  </code></pre>