HTML to PDF Converter
Getting Started with HTML to PDF
Merge Multiple HTML to PDF
Add HTML in PDF Header and Footer
Repeat HTML Table Header and Footer in PDF
Insert Page Breaks in PDF Using CSS
Avoid Page Break Inside Elements Using CSS
Auto Create Hierachical Bookmarks
Auto Create Table of Contents
Auto Generate Tagged PDF
Convert Internal Links from HTML to PDF
Convert HTML with SVG to PDF
Convert HTML with Web Fonts to PDF
Select Conversion Triggering Mode
Select Media Type for Screen or Print
Convert the Current HTML Page to PDF
Convert a HTML Page to PDF in Same Session
Set PDF Viewer Preferences
Set PDF Permissions and Password
Digitally Sign the Generated PDF
Add HTTP Headers to HTML Page Request
Add Cookies to HTML Page Request
Access HTML Pages with GET and POST
HTML to Image Converter
Convert HTML to a Raster Image
Select Conversion Triggering Mode
EVO HTML to PDF Converter allows you to select when you want to start conversion of the HTML page to PDF. You can start conversion immediately after the page was loaded, delayed after the page was loaded with a constant time interval or manually by calling the evoPdfConverter_startConversion() function from the HTML page JavaScript code.
Convert HTML String
HTML Page URL or Local File to Convert
HTML String with Manual Triggering
<!DOCTYPE html> <html> <head> <title>Conversion Triggering Modes</title> <script type="text/javascript"> var counter = 0; function count() { // Display the current counter value document.getElementById("counterDiv").innerHTML = counter; if (typeof evoPdfConverter_startConversion == 'function' && counter == 5) { // Trigger conversion when counter reached a value counterDiv.style.color = "green"; evoPdfConverter_startConversion(); } else { // Increment counter counter++; // After 1 second and call count() again setTimeout("count()", 1000); } } </script> </head> <body onload="count()" style="font-family: 'Times New Roman'; font-size: 14px"> The <span style="color: green"><b>count()</b></span> function is called immediately after the HTML page was loaded as a handler of the <span style="color: blue"><b>onload event</b></span> of the body element. The <span style="color: green"><b>count()</b></span> function increments the counter and schedules a new call to the same function to occur after 1 second if the counter did not reach the value 5 yet.<br /> <ul> <li> If the selected triggering mode is <span style="background-color: aliceblue"><b>Auto</b></span> then the <span style="color: green">count()</span> will be invoked once a second during the given delay interval and after that the conversion to PDF will start </li> <li> If the selected triggering mode is <span style="background-color: aliceblue"><b>Manual</b></span> then the <span style="color: green">count()</span> will be invoked once a second until the counter reached the value 5. When the counter reached this value the <span style="background-color: whitesmoke"><b>evoPdfConverter_startConversion()</b></span> function is called to trigger the conversion to PDF </li> </ul> <br /> <b style="font-size: 30px">Counter value:</b> <span style="font-size: 30px; color: red" id="counterDiv">0</span> <br /> <br /> <br /> <span style="color: navy"> <script type="text/javascript"> if (typeof evoPdfInfo != "undefined") { document.write("Created by " + evoPdfInfo.Version); } </script> </span> </body> </html>
Base URL
HTML Page to Convert URL
Select Triggering Mode
Auto
Manual
Delay Conversion:
sec