Select.Pdf for .NET - Start Conversion from Javascript

This is a sample page that will demonstrate how a html to pdf conversion can be triggered from a javascript call using Select.Pdf Library for .NET.
The page increments a timer until it reaches 3 and then it calls the conversion from javascript. If the conversion is manually started from javascript, the timer below should be 3 in pdf. If the conversion is automatically started when the page loads, the timer below should be 1 in pdf.

Library version:
Timer: