I have an implementation using HTmlConverter from the Syncfusion.HtmlToPdfConverter.AspNet.Mvc5 package @ version 220.127.116.11.
This works fine when run locally but when I publish to Azure and run from there via a PowerAutomate flow, I get an error:- "Blink files are missing at C:\home\site\wwwroot\Libraries\BlinkBinaries"
I have moved the Binaries folder to our Libraries folder.
Can you provide any guidance?
The Blink rendering engine does not support conversion in Azure app service (Azure websites) and Azure function. The Azure app service environment does not have elevated permissions and enough rights to launch the browser for converting HTML to PDF. However, we can use the Html to PDF converter with the .NET Core library in Azure App Service Linux or Azure Functions Linux.
Please refer to the below link for more information,
The mentioned NuGet Syncfusion.HtmlToPdfConverter.AspNet.Mvc5
package is suitable for ASP Net Framework only. If you are using the .NET Core platform, you need to install the below-recommended package.
Please try the above solution on your end and let us know the result.
I've upgraded to Syncfusion.HtmlToPdfConverter.Net.Windows as suggested.
The conversion is returning a different error: "Failed to convert webpage".
The webpage can be successfully converted when running locally - the error occurs when calling our Api from PowerAutomate.
I'd be grateful for any advice.
As we said earlier, the Blink rendering engine does not support conversion in Azure app services (Azure websites) or Azure functions in Windows. If you are using a Linux app service, you can use the converter with the.NET Core API in Azure App Service Linux.
So you need to install the Syncfusion.HtmlToPdfConverter.Net.Linux NuGet package
Please refer below documentation page