title: table of contents with reference to page when converting html to pdf
body: <p>I'm using html-pdf library to convert html to pdf in nodejs.
  But I have problem with table of contents, for example: when I click title 1______________ 5  on table of contents, it should auto go to page 5 of pdf file. I tried to add a tag <code>a</code> with <code>href="#id_of_page_5"</code> but not working for now. So please help me with a resolution for this issue.</p>
  
  <p>Example code:</p>
  
  <pre><code>&lt;div class="plan-items-content"&gt;
      &lt;h1&gt;Table of Contents&lt;/h1&gt;
        &lt;ul&gt;
          &lt;% datas.forEach(function (field) { %&gt;
              &lt;li&gt;&lt;a href="#tof&lt;%=field.page%&gt;"&gt;&lt;span class="title"&gt;&lt;%=field.title%&gt;&lt;/span&gt;&lt;span class="dotline"&gt;&lt;/span&gt;&lt;span class="pagenumber"&gt;&lt;%=field.page%&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;% }) %&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>and in html-pdf I don't add more any options when creating pdf file.  </p>
  
  <p>Thanks in advance</p>