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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Failed to convert the webpage exception with WebKit HTML converter

Thread ID:

Created:

Updated:

Platform:

Replies:

146767 Aug 16,2019 12:58 PM UTC Sep 6,2019 10:20 AM UTC WinForms 8
loading
Tags: PDF
Olivier MATROT
Asked On August 16, 2019 12:58 PM UTC

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.

Gowthamraj Kumar [Syncfusion]
Replied On 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. 

Regards, 
Gowthamraj K   


Olivier MATROT
Replied On 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.

Olivier MATROT
Replied On August 21, 2019 01:06 PM UTC

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

https://test.safeprotect.fr/account/login

Thanks in advance.
Olivier.

Olivier MATROT
Replied On 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 : 0.0.0.0
P3 : 5cbee97d
P4 : Qt5WebKit.dll
P5 : 5.5.0.0
P6 : 5bfce4b6
P7 : c0000005
P8 : 00c01f02
P9 :
P10 :
Fichiers joints :
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER47CB.tmp.mdmp
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER4AD9.tmp.WERInternalMetadata.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER4B28.tmp.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER4B2C.tmp.csv
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER4BBA.tmp.txt
Ces fichiers sont peut-être disponibles ici :
C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_Syncfusion.WebKi_fa86deaff5d5db3fe64952dd43721a3ba47b588_e6f21e57_225650d3
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
GUID CAB :0
XML de l’événement :

 
   
    1001
    4
    0
    0x80000000000000
   
    90335
    Application
    PC-XAD.rtenetwork.net
   
 

 
    1304289046018880237
    1
    APPCRASH
    Non disponible
    0
    Syncfusion.WebKitWrapper
    0.0.0.0
    5cbee97d
    Qt5WebKit.dll
    5.5.0.0
    5bfce4b6
    c0000005
    00c01f02
   
   

   
   

   
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER47CB.tmp.mdmp
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER4AD9.tmp.WERInternalMetadata.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER4B28.tmp.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER4B2C.tmp.csv
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER4BBA.tmp.txt

    C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_Syncfusion.WebKi_fa86deaff5d5db3fe64952dd43721a3ba47b588_e6f21e57_225650d3
   
   

    0
    8dd399a7-6908-46d0-b8cf-e7f4202b2799
    268435456
    7d6ed2b2a6e55e340219c3fa186372ed
    0
 



Gowthamraj Kumar [Syncfusion]
Replied On 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.  

Regards, 
Gowthamraj K 


Gowthamraj Kumar [Syncfusion]
Replied On 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: 17.2.0.34      
Installation Directions:     
This patch should replace the file “Qt5WebKit.dll” under the “QtBinaries” folder.       
Eg: $system drive:\Program Files\Syncfusion\HTMLConverter\17.2.0.34\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. 
4.            
Note:        
To change how you receive bug fixes, ask your license management portal admin to change your project’s patch delivery mode.       
       
Disclaimer:        
Please note that we have created this patch for version 17.2.0.34 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.  

Regards, 
Gowthamraj K 


Olivier MATROT
Replied On September 6, 2019 09:44 AM UTC

Problem solved.
You could close the thread.

Gowthamraj Kumar [Syncfusion]
Replied On September 6, 2019 10:20 AM UTC

Hi Olivier, 

Thank you for your update. 

Regards, 
Gowthamraj K 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon