Welcome to HiQPdf Demo
HTML to PDF
HTML to PDF Converter Demo
PDF Headers and Footers
HTML Table Header and Footer
Control PDF Page Breaks with CSS
Auto Create Outlines and Links
Auto Create Tagged PDF
Set Conversion Triggering Mode
Select Media Type for Rendering
Web Fonts Advanced Support
Convert Current View with Form Data
Convert Another View with Form Data
PDF Viewer Settings
PDF Security Settings
PDF Digital Signatures
HTML to Image
In this demo you learn how to automatically create outlines, HTTP and internal links in PDF and how to force a HTML element to start on a new page in PDF.
The demo creates a simple table of contents with internal links to chapters and a HTTP link to HiQPdf website. For each chapter there is also an outline in document outlines and each chapter is forced to start on a new PDF page using the page-break-before : always style.
HTML Code
<html> <head> <title>Auto Outlines and Links</title> </head> <body> <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>
Hierarchical Outlines