Collapse
Expand
HTML to PDF Converter
Getting Started with HTML to PDF
HTML Content Destination and Scaling in PDF
Convert the Current HTML Page to PDF
Convert a HTML Page to PDF in Same Session
Merge Multiple HTML Pages into a Single PDF
Merge HTML with Existing PDF Documents
Partially Convert of a HTML Page to PDF
Repeat HTML Table Header and Footer in PDF
Headers and Footers
Page Breaks Control
Screen and Print Media Types
Conversion Triggering Modes
Select Conversion Triggering Mode
Hierachical Bookmarks
Table of Contents
Live PDF Forms
HTML5 Features
HTTP GET and POST, Proxy Options
HTTP Headers and Cookies
Fonts Embedding
HTML Elements Location in PDF
HTML Elements Visibility in PDF
URI Links in PDF
Internal Links in PDF
File Links and Attachments
Text Notes in PDF
PDF Actions
HTML to PDF Elements
HTML to Image Elements
Images Quality in Generated PDF
Flash and Extensions Support
Watermarks and Stamps
PDF/A and PDF/X Standards
CMYK and GrayScale Color Spaces
PDF Viewer Preferences
PDF Security Features
HTML to Image Converter
PDF Creator
PDF Editor
Live Demo
Description
Sample Code
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 evoConverter.startConversion() method from the HTML page JavaScript code. The Full Description and a Code Sample can be accessed from the top tabs.
Use TCP/IP Server
IP Address:
Port:
Use Web Service
URL:
Service Password:
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 (counter == 5) { // Trigger conversion when counter reached a value counterDiv.style.color = "green"; if (typeof evoPdfConverter != "undefined") { 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 execution of the initial call to <span style="color: green">count()</span> will end and the conversion to PDF will start immediately </li> <li>If the selected triggering mode is <span style="background-color: aliceblue"><b>Delayed</b></span> then the <span style="color: green">count()</span> will be invoked once a second during the 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: 20px">Counter value:</b><br /> <div style="font-size: 30px; color: red; float: left" id="counterDiv">0 </div> <span style="font-size: 30px; color: black; float: left"> of</span> <span style="font-size: 30px; color: green; float: left"> 5</span> <br /> <br /> <br /> <span style="color: navy"> <script type="text/javascript"> if (typeof evoPdfInfo != "undefined") { document.write("Created by " + evoPdfInfo.getVersion()); } </script> </span> </body> </html>
Base URL
Select Triggering Mode
Auto
Delayed
Manual