Welcome to HiQPdf Demo
Collapse HTML to PDF HTML to PDF
Expand HTML to Image HTML to Image
Expand PDF Creator PDF Creator
Expand PDF Editor PDF Editor
Expand Word to PDF Word to PDF
Expand Excel to PDF Excel to PDF
Expand RTF to PDF RTF to PDF
Expand Markdown to PDF Markdown to PDF
Expand PDF to Text PDF to Text
Expand Find PDF Text Find PDF Text
Expand PDF to Image PDF to Image
Expand PDF to Image Extract PDF Images
Select Media Type When Converting HTML to PDF
In this demo you learn how to change the CSS properties of a HTML document based on media type selection. By default the HTML to PDF converter will render the HTML document for 'screen', but this can be changed when another media type is assigned to HtmlToPdf.MediaType property.

For example, when this property is set to 'print' the CSS properties defined by the '@media print' rule will be used when the HTML is rendered instead of the CSS properties defined by the '@media screen' rule.
HTML Code
Select Media Type: