HiQPdf Software
Home
|
FAQs
|
Support
|
Contact
Home
PDF Library
HiQPdf Chromium
Multi-Platform
Downloads
Purchase
Help
Welcome to HiQPdf Demo
HTML to PDF
HTML to PDF Converter Demo
Convert Many HTMLs to PDF
HTML Fitting and Scaling Options
Convert a Selected HTML Region
Headers and Footers in PDF
Convert Web Pages Preserving State
Set PDF Pages Background
HTML Elements Position in PDF
Set Conversion Triggering Mode
Auto Create Outlines and Links
Auto Create Table of Contents
Auto Create PDF Forms
Repeat Table Header and Footer
Control PDF Page Breaks with CSS
Select Media Type for Rendering
Web Fonts Advanced Support
PDF Security Settings
HTML to Image
HTML to SVG
PDF Forms
Create and Submit PDF Forms
Fill and Save PDF Forms
Set an Open Action in PDF
Create Outlines and Links in PDF
Create File Attachments in PDF
Add HTML Objects in PDF
Add Text Objects in PDF
Add Image Objects in PDF
Add Graphic Objects in PDF
PDF Document Security
Add Digital Signatures in PDF
Edit PDF Documents
Merge PDF Documents
Extract Text from PDF
Search Text in PDF
Extract Images from PDF
Rasterize PDF Pages to Images
Convert PDF to HTML
Automatically Create Table of Contents
The HiQPdf HTML to PDF Converter can automatically create a table of contents in the beginning of the generated PDF document based on the H1 to H6 heading tags structure defined in HTML document.
Demo
C# Code
VB.NET Code
Help
HTML Code
<html> <head> <title>Auto Create Table of Contents</title> </head> <body> <br /> <br /> <h1 class="pdf_outlines">Contents</h1> <a href="#Chapter1">Go To Chapter 1</a> <br /> <a href="#Chapter2">Go To Chapter 2</a> <br /> <a href="#Chapter3">Go To Chapter 3</a> <br /> <a href="http://www.hiqpdf.com">Visit Website</a> <h2 class="pdf_outlines" style="page-break-before: always" id="Chapter1">Chapter 1</h2> This is the chapter 1 content. <h2 class="pdf_outlines" style="page-break-before: always" id="Chapter2">Chapter 2</h2> This is the chapter 2 content. <h2 class="pdf_outlines" style="page-break-before: always" id="Chapter3">Chapter 3</h2> This is the chapter 3 content. </body> </html>
Auto Create Table of Contents