Published service all the time returns
"Failed to generate “.pdf” for the request. Error occured while converting to pdf. Eception:Failed to launch chromium: Missing require dependent packages" error except for the first time after running the ssh commands
I have publish the service to the app service(Linux) and after run below commands with SSH in Azure App Service
as well I tried this scenario https://support.syncfusion.com/kb/article/11428/how-to-convert-html-to-pdf-in-azure-app-service-linux-with-blink-rendering-engine?_gl=1*s45t6m*_ga*MTkxMTE0NDc0Ny4xNzA5MDkyNDE2*_ga_41J4HFMX1J*MTcxNTU3NjI0OS4xMTMuMS4xNzE1NTc3MDAwLjAuMC4w but service not published correctly and given below error because of a .sh path identified issue
Is there any solution for this issue
now the error occurring intermittently for every one or 2 request.
Any solution for this issue?
Hi Harsha Subasinghe,
We have checked the reported issue on our end. We can resolve the reported issue by providing the file access permission for blink binaries. Also kindly set the dependenciesInstall.sh file to "Copy if newer" in property. However, we have attached the Azure app service sample with net 8.0 for your reference.
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/HTMLtoPDF_AzureAppService110767492
Kindly try the sample and let us know the result. If you are still facing the issue, we kindly request you to share the modified sample, package version, package name, framework version and environment details (such as OS platform, bit version and RAM size) with us to replicate same issue on our end. This information will be more helpful for us to analyze and provide you with a prompt solution.
Regards,
Jeyalakshmi T
Hi Jeyalakshmi Thangamarippandian,
Thank you so much it seems now the process work as expected with above solution
We are glad to hear that the issue has been resolved on your end. Please get back to us if you need any further assistance.
Hi Team
From the given sample
https://www.syncfusion.com/downloads/support/directtrac/general/ze/HTMLtoPDF_AzureAppService110767492 When I ran image and deployed to docker desktop I am getting blink files missing issue.
"2025-03-28 14:45:17 fail: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware[1]
2025-03-28 14:45:17 An unhandled exception has occurred while executing the request.
2025-03-28 14:45:17 Syncfusion.Pdf.PdfException: Blink files are missing at /app/runtimes/linux/native
"
Also Do you have working solution for Azure functions isolated + donet 8
Can we get the docker file for that to see what libraries we would need to run?
Thanks
Hi Santhosh,
We can convert an HTML to PDF using C# with the Blink rendering engine in Azure App Service Linux with docker.
Please find the github sample link:
Online demo sample link:
https://ej2aspnetcore.azurewebsites.net/aspnetcore/pdf/htmltopdf#/material3
Please find the below UG documentation link for more details,
Regards,
santhiya