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

Html to pdf conversion using webkit failed when accessing https page

I'm trying to convert some html pages to pdf using the webkit renderer and all works fine if I the page to convert is on http site, but if the url is a https page all I have is a blank Pdf.

Any suggestion?

5 Replies

PV Prakash Viswanathan Syncfusion Team May 15, 2017 10:43 AM UTC

Hi Nicola, 
Thanks for contacting Syncfusion support. 
WebKit HTML converter requires OpenSSL assemblies for converting https sites. So, please make sure the assemblies are available in the machine where the conversion take place.  
1.       You can install the OPENSSL library by downloading its setup from the below link, 
2.       The required OpenSSL assemblies below can be placed in the Windows system folder (for 64-bit machine, it should be place in $Systemdrive\Windows\SysWOW64 and for 32-bit machine, it should be place in $Systemdrive\Windows\System32),  
1.       libeay32.dll 
2.       libssl32.dll 
3.       ssleay32.dll 
If still the blank PDF occurs even at the presence of the OpenSSL assemblies, please provide the input URL, code snippet and environment details such as OS, bit version, culture settings etc., so that it will helpful for us to proceed further. 
Prakash V 

NT Nicola Tufarelli May 19, 2017 12:33 PM UTC

Thanks for your help.
I've tried on a 32 bit client computer, copied the 3 dll in a directory and added this directory to the path. All seems to be ok and a pdf file is created with the content of the https page.

Then I've tried to do the same on a Windows Server 2012 R2:
1. If I don't have the openssl dll a blank pdf is created without errors
2. If I copy the ssl dll to a directory and add it to the path or if I copy the 3 dll to C:\Windows\Syswow64 the program crashes.


PV Prakash Viswanathan Syncfusion Team May 22, 2017 12:19 PM UTC

Hi Nicola, 
We have not faced this issue before (converter crashes due to OpenSSL assemblies) with our WebKit HTML converter. We have tried to reproduce the reported issue in windows server 2012 R2, but it works fine in our end. So, we have created a support incident for further follow up with this issue, please follow the incident created under your profile for further updates. 
Prakash V 

JL James Lau June 21, 2018 07:14 AM UTC

How to install OpenSSL library to  Azure web app environment?

PV Prakash Viswanathan Syncfusion Team June 21, 2018 08:43 AM UTC

Hi James, 

Please refer below steps to include the OPENSSL assemblies to the Azure website. 
  • Create a new folder in a project and copy the below OPENSSL assemblies to that folder from your local machine.
  1. libeay32.dll
  2. libssl32.dll
  3. ssleay32.dll
  • Include that folder in a project and set copy to the output directory as “Copy always” for the OPENSSL assemblies.
  • Get the path of the OPENSSL assemblies folder in C# and set it to the environment variable.

Refer below KB link for converting HTTPS sites to PDF in Azure. 

Prakash V 

Live Chat Icon For mobile
Up arrow icon