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
In this demo you learn how to add a custom background content to the PDF pages created by the converter in the PageLayoutingEvent event handler called right before rendering the main HTML content in PDF page.
The PageLayoutingEvent event handler parameter contains the PdfPage object being rendered and the rectangle inside the page that will be rendered. The PDF objects added to the PdfPage in this event handler will be rendered in the background of the main HTML content.
HTML Document URL
Settings
Set PDF background color components as values from 0 to 255:
Red:
Green:
Blue:
Page Margins:
Left:
pt
Right:
pt
Top:
pt
Bottom:
pt