Hi Team,
The Html to PDF Conversion is working fine in Local, but once i deploy it to Azure app service ( Windows), its failing.
Please help.
All the dlls are copied in azure as well
P.S. : I don't find the Qtweblibraries (https://support.syncfusion.com/kb/article/8620/converting-html-to-pdf-in-azure-using-aspnet-core-pdf)
Blink :
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. However, we can use the Html to PDF converter with .NET Core library in Azure App Service Linux or Azure Functions Linux. 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://support.syncfusion.com/kb/article/11428/how-to-convert-html-to-pdf-in-azure-app-service-linux-with-blink-rendering-engine
Azure Functions Linux: https://support.syncfusion.com/kb/article/11427/how-to-convert-html-to-pdf-using-blink-in-azure-functions-linux
Webkit:
This KB (https://support.syncfusion.com/kb/article/8620/converting-html-to-pdf-in-azure-using-aspnet-core-pdf )
is outdated. We will revamp and update details once completed.
Please refer the below UG documentation link
The webkit public NuGet packages are not available or searched on nuget.org. But you can install Syncfusion.HtmlToPdfConverter.QtWebKit.Net. Core package in the Package Manager console by using the below command,
|
NuGet\Install-Package Syncfusion.HtmlToPdfConverter.QtWebKit.Net.Core -Version 22.2.8 |
https://www.nuget.org/packages/Syncfusion.HtmlToPdfConverter.QtWebKit.Net.Core
Note : WebKit rendering engine is a old legacy which has known rendering issue.
You can get the QT Binaries folder from the native folder of the runtime folder instead of getting it from the lib folder.
The QtBinaries will be copied to the bin folder of the application by default. There is no need to set WebKitPath, it will be automatically take from bin folder. However, you can set WebKitPath ,if you need to set the Path explicitly.
We have updated the changes in our KB documentation and it is live now
Please find the below KB link
https://support.syncfusion.com/kb/article/8620/converting-html-to-pdf-in-azure-using-aspnet-core-pdf