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. Image for the cookie policy date
close icon

Html to Pdf converter with Webkit is not executing onload jquery


I have a html file with supporting css and js files, which I exported off a asp.net website. It works fine when I open the html in a browser where it executes some onload JQuery script.

However when I try to generate a pdf file using the HtmlToPdf library, the pdf looks exactly same as the html, except it does not execute the onload so, the textboxes do not have any values.

Please find attached zip with 

  1. files => html and supporting files
  2. pdf => generated pdf

Avinash Tauro

Attachment: Files_89713b44.zip

3 Replies

GK Gowthamraj Kumar Syncfusion Team October 10, 2022 07:49 AM

Hi Avinash

We have checked the reported issue with provided HTML on our end and the text missing issue occurs. Our WebKit rendering engine becomes an older rendering engine, some of the advanced bootstrap4, CSS styles are not supported in the WebKit rendering engine. So we are unable to proceed further with the WebKit rendering engine. We introduced a new Blink rendering engine, which supports the latest bootstrap styles and advanced web features. We are fully focused on this and suggested the blink rendering engine.

Blink converter internally makes use of chromium executable in headless mode for converting HTML to PDF. It will preserve the PDF document like how the input HTML is displayed in chromium-based web browsers (chrome print preview).

We have attached the modified sample to achieve your requirement with the blink output document for your reference, please try the sample on your end and let us know if it satisfies your requirement or not.

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/HtmlNet6.0787579209

Output: https://www.syncfusion.com/downloads/support/directtrac/general/pd/SampleBlink-1333499391

Please refer below link for more information about the Blink rendering engine.

Blink: https://help.syncfusion.com/file-formats/pdf/convert-html-to-pdf/blink


Please let us know if you need any further assistance in this.


Gowthamraj K

AV Avinash October 10, 2022 08:15 AM


Thanks for the response. I will try this out.

I remember this doesn't work on Azure App Services Windows though. We had to move from Blink to WebKit in an earlier project few months back, as Blink Engine was not supported on Azure Windows.

Do you know if Blink works on Azure now.

Avinash Tauro

GK Gowthamraj Kumar Syncfusion Team October 11, 2022 07:32 AM

Hi Avinash,

Due to the GDI limitations and restrictions of the Azure App service environment, the Blink rendering engine does not support conversion in Azure app service (Azure websites) and Azure function in windows. Azure app service environment does not have elevated permissions and enough rights to launch the browser for converting HTML to PDF. However, we can use the Html to PDF converter with .NET Core library in Azure App Service Linux or Azure Functions Linux. The GDI limitation mentioned in this article is applicable for Azure App Service windows only. So, if you are using a Linux app service, you can use the converter with .NET Core API in Azure App Service Linux.

Please refer to the below links for more information,

Azure App Service Linux: https://www.syncfusion.com/kb/12909/how-to-convert-html-to-pdf-in-azure-app-service-linux-with-blink-rendering-engine

Azure Functions Linux: https://www.syncfusion.com/kb/12908/how-to-convert-html-to-pdf-using-blink-in-azure-functions-linux

We can also use Azure App service with docker for deploying the HTML to PDF conversion with Blink rendering engine. Please refer below link for more information,



Gowthamraj K

Live Chat Icon For mobile
Up arrow icon