HTML page to PDF: Failed to convert the webpage

Hi,

We have a problem on our production server that prevents us to generate PDF from HTML. (The error is: Syncfusion.Pdf.PdfException: Failed to convert the webpage)

Here are all the version of OS/dotnetcore/syncfusion binaries we use:

# dotnet --info:

SDK .NET Core:
 Version:   2.1.300
 Commit:    adab45bf0c

 OS Name:     debian
 OS Version:  8
 OS Platform: Linux
 RID:         debian.8-x64
 Base Path:   /usr/share/dotnet/sdk/2.1.300/

Host (useful for support):
  Version: 2.1.0
  Commit:  caa7b7e2ba

.NET Core SDKs installed:
  2.1.300 [/usr/share/dotnet/sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.1.0 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.0 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.1.0 [/usr/share/dotnet/shared/Microsoft.NETCore.App]


Syncfusion QT binaries from the latest available downloads: https://www.syncfusion.com/support/directtrac/downloads/16.1.0.24 (WebKit HTML Converter Linux) and in our csproj file:

PackageReference Include="Syncfusion.HtmlConverter.NETStandard20" Version="16.1200.0.24"

The exact same versions on my development machine works great, so we don't understand were the problem comes from.

We have tried different conversion methods (from html string, html file, urls) and different dotnetcore/syncfusion versions but nothing seems to fix the error.

We also tried everything specified in your documentation: https://help.syncfusion.com/file-formats/pdf/converting-html-to-pdf#html-string-to-pdf as well as the troubleshooting steps: https://help.syncfusion.com/file-formats/pdf/converting-html-to-pdf#troubleshooting

My guess at this point is that some OS libraries are not compatible with this version of syncfusion html to pdf converter (since the same code runs fine on different linux with more recent packages).



Thank you for your help.



4 Replies

MI michon June 13, 2018 01:46 PM UTC

Is there any ways to have more details about what is failing during the html to pdf conversion ?


PV Prakash Viswanathan Syncfusion Team June 14, 2018 12:59 PM UTC

Hi Michon, 

Sorry for the delayed update. 

We have not tested the HTML conversion in Debian 8 OS earlier. But we faced this exception earlier in Ubuntu OS and resolved it by installed the dependency packages. Please refer below UG and KB link for prerequisites of HTML conversion in Linux.  

However, we have created a support incident under your account to follow up for this exception. Please log on to our support website to check for further updates. 

Regards, 
Prakash V 



MI michon June 19, 2018 08:19 AM UTC

Thank you for your answer.

We will check again the dependencies later this week to see if it was a mistake on our part.


PV Prakash Viswanathan Syncfusion Team June 19, 2018 10:20 AM UTC

Hi Michon, 
 
Thanks for your update. Please try with the dependencies and let us know the result.  
 
Regards, 
Prakash V 


Loader.
Up arrow icon