title: How to create dynamic Table Of Content section using TCPDF with content items as header title?
body: <p>I am using TCPDF library to generate a PDF file dynamically in my Laravel Project.</p>
  
  <p>I have a requirement to create the Table Of Content section dynamic and set the header of each page using Summary titles. And to give link to each items below which will lead user to the start of that section/content.</p>
  
  <pre><code>Example:
  
  My Table Of Content
  
  Summary ............................... 1
  Organization &amp; Management Structure.... 5
  Credit History......................... 7
  Public Records......................... 8
  </code></pre>
  
  <p>So, </p>
  
  <pre><code>My page 1 should have header as Summary
  Page 2 to 4 should have header as Summary(Cont.)
  Page 5 =&gt; Organization &amp; Management Structure
  Page 6 =&gt; Organization &amp; Management Structure(Cont.) 
  Page 7 =&gt; History 
  Page 8 =&gt; Public Records
  </code></pre>
  
  <p>If you can help me by sending some tricks I can use to complete this, it will be a great help. Thanks!</p>