I can create a PDF from an HTML file but would like to include a clickable table of contents to the pdf. I have set up a clickable TOC in the HTML file, but it doesn't work in the pdf. Here is the HTML file.
<style>
ol {
counter-reset: item
}
li {
display: block
}
li:before {
content: counters(item, ".")" ";
counter-increment: item
}
</style>
<body>
<ol>
<li> <a href="#Purpose">Purpose</a>
</li>
<li> <a href="#Summary">Term Definitions</a>
</li>
<ol>
<li> <a href="#Lnk"></a>
</li>
<li> <a href="#Lnk"></a>
</li>
</ol>
</ol>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<h2 id="Purpose" style="color: #5e9ca0; text-align: center;"><span style="color: #2b2301;">Purpose</span></h2>
<p>This is the whole idea that you should understand.</p>
</body>

Report
All responses (
Answers (