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

Failed to convert the webpage exception with WebKit HTML converter

I have seen the knowledge base article : https://www.syncfusion.com/kb/8208/failed-to-convert-the-webpage-exception-with-webkit-html-converter

My problem is when calling my angular website. I'm able to convert the google home page successfuly.
Is there a way to retreive the Webkit HTML error ?

Thanks in advance.

8 Replies

GK Gowthamraj Kumar Syncfusion Team August 19, 2019 04:03 PM UTC

Hi Olivier, 

Thank you for using Syncfusion products. 

We are not able to reproduced the reported exception in our HTML converter. When have converted the Angular website to PDF document without any exception. Kindly please provide more details such as (complete sample, code snippet and environment details) to reproduce the issue in our end. So, that it will be helpful for us to analyze and assist you further on this. 

Gowthamraj K   

OM Olivier MATROT August 21, 2019 06:59 AM UTC

Hello, I can't give you a sample because my web application is under development.
Is suspect that this has to do with security and the authorization header.
This is why I'm asking If I can enable verbose logging of the component to try to understand what is going on.
I'll try with fiddler enabled and get back to you.
Thanks in advance.

OM Olivier MATROT August 21, 2019 01:06 PM UTC

Here is a pubic URL so you can try and see for yourself:


Thanks in advance.

OM Olivier MATROT August 22, 2019 11:35 AM UTC

After further investigations, I found out that this is a crash of the SyncfusionWebKitWrapper

Nom du journal :Application
Source :       Windows Error Reporting
Date :         22/08/2019 13:02:09
ID de l’événement :1001
Catégorie de la tâche :Aucun
Niveau :       Information
Mots clés :    Classique
Utilisateur :  N/A
Ordinateur :   PC-XAD.rtenetwork.net
Description :
Détecteur d'erreurs 1304289046018880237, type 1
Nom d’événement : APPCRASH
Réponse : Non disponible
ID de CAB : 0
Signature du problème :
P1 : Syncfusion.WebKitWrapper
P2 :
P3 : 5cbee97d
P4 : Qt5WebKit.dll
P5 :
P6 : 5bfce4b6
P7 : c0000005
P8 : 00c01f02
P9 :
P10 :
Fichiers joints :
Ces fichiers sont peut-être disponibles ici :
Symbole d’analyse :
Nouvelle recherche de la solution : 0
ID de rapport : 8dd399a7-6908-46d0-b8cf-e7f4202b2799
Statut du rapport : 268435456
Récipient avec hachage : 7d6ed2b2a6e55e340219c3fa186372ed
XML de l’événement :


    Non disponible





GK Gowthamraj Kumar Syncfusion Team August 22, 2019 02:03 PM UTC

Hi Olivier, 

Thank you for your update. 

WebKit rendering engine internally make use of QtWebKit rendering engine for converting HTML to PDF. The reported exception occurs in WebKit rendering engine itself, its unable to find the width and height of the web page. We have confirmed that the issue with “Failed to convert the webpage exception occurs in particular URL using WebKit converter” is a defect and we have logged a issue report. After this fix, the output document will be preserved like(empty PDF document), how the URL is displayed in WebKit based web browser(safari). Currently we are working on this fix and we will update the details on September 3rd 2019. 

We can achieve your requirement by using HTML string to PDF conversion, we have to get HTML string of the react web page and then convert it to PDF document. When converting HTML string to PDF, we have to specify the base URL (path of the resources) to load the external images/scripts/styles used in the HTML string. We have also saved the provide website to a HTML string and convert it into PDF document, but some resources are not added properly. Can you please get and use the HTML string for conversion instead of converting URL to PDF.  

Please refer the below link for HTML string to PDF conversion, 
Please let us know if you need any further assistance on this.  

Gowthamraj K 

GK Gowthamraj Kumar Syncfusion Team September 3, 2019 08:48 AM UTC

Hi Olivier, 

The issue with “Failed to convert the webpage exception occurs in particular URL using WebKit converter” has been fixed and the patch for this fix can be downloaded from the following location.    
Assembly Version:      
Installation Directions:     
This patch should replace the file “Qt5WebKit.dll” under the “QtBinaries” folder.       
Eg: $system drive:\Program Files\Syncfusion\HTMLConverter\\QtBinaries\ 

Steps to replace the files in QtBinaries folder:   
1.           1. Download and extract the patch for QtBinaries from the above link.  
2.           2. Copy the Qt5WebKit.dll from that and replace it in the QtBinaries folder of your project.  
3.           3. Make sure to replace the files in all the QtBinaries folder. 
To change how you receive bug fixes, ask your license management portal admin to change your project’s patch delivery mode.       
Please note that we have created this patch for version specifically to resolve the following issue(s) reported in this/the forum(s). 146767 
If you have received other patches for the same version for other products, please apply all patches in the order received.       
This fix will be included in our 2019 Volume 3 release which will be available by September 2019 tentatively.  

Gowthamraj K 

OM Olivier MATROT September 6, 2019 09:44 AM UTC

Problem solved.
You could close the thread.

GK Gowthamraj Kumar Syncfusion Team September 6, 2019 10:20 AM UTC

Hi Olivier, 

Thank you for your update. 

Gowthamraj K 

Live Chat Icon For mobile
Up arrow icon