We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to use WindowStatus in WebKit HTML converter

We can manually wait HtmlConverter up to the document loading using WindowStatus property in WebKit HTML converter. We can use windows status instead of addition delay. In additional delay, we do not know the exact time that need for execution of JavaScript. By windows status you can avoid this problem.

Note: Both window status should be same, else converter never stops the conversion

Assemblies Required

  1. Syncfusion.Compression.Base.dll
  2. Syncfusion.HtmlConverter.Base.dll
  3. Syncfusion.Pdf.Base.dll
  4. QtBinaries folder

All the above mentioned assemblies can be get by installing the WebKit installer available in the below link.

WebKit HTML Converter: https://www.syncfusion.com/downloads/latest-version


// Create a HTML to PDF converter object with default settings

HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit);

WebKitConverterSettings webKitSettings = new WebKitConverterSettings();


//Set WebKitpath

webKitSettings.WebKitPath = @"../../../../QtBinaries";


//Set window status

webKitSettings.WindowStatus = "completed";


htmlConverter.ConverterSettings = webKitSettings;


//Convert url to pdf

PdfDocument document = htmlConverter.Convert("input.html");


//Save the document.








<body >

    <div id="message">

        Wait for 2 Seconds



    <script type="text/javascript">


        setTimeout(function () {

            document.getElementById("message").innerHTML = "Hello World!!";

            window.status = "completed";

        }, 2000);






Working Sample can be downloaded from the below link.


Article ID: Published Date: Last Revised Date: Platform: Control:
8182 11/24/2017 11/24/2017 ASP.NET MVC PDF
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon