Failed to generate “.pdf” for the request. Error occured while converting to pdf. Eception Failed to launch chromium Missing require dependent packag

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

Image_6481_1717570880567

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 Image_7526_1717571352442

Image_1413_1717573281535


Is there any solution for this issue


6 Replies 1 reply marked as answer

HS Harsha Subasinghe June 6, 2024 02:43 PM UTC

now the error occurring intermittently for every one or 2 request.

Any solution for this issue?



JT Jeyalakshmi Thangamarippandian Syncfusion Team June 6, 2024 03:32 PM UTC

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



Marked as answer

HS Harsha Subasinghe June 7, 2024 06:49 AM UTC

Hi  Jeyalakshmi Thangamarippandian,

Thank you so much it seems now the process work as expected with above solution 



KS Karmegam Seerangan Syncfusion Team June 10, 2024 06:26 AM UTC

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.



SK Santhosh Kasam March 28, 2025 07:51 PM UTC

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



SN Santhiya Narayanan Syncfusion Team March 31, 2025 09:06 AM UTC

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:

https://github.com/SyncfusionExamples/html-to-pdf-csharp-examples/tree/master/Azure/HTML_to_PDF_Azure_app_service_docker


Online demo sample link:

https://ej2aspnetcore.azurewebsites.net/aspnetcore/pdf/htmltopdf#/material3


Please find the below UG documentation link for more details,

https://help.syncfusion.com/document-processing/pdf/conversions/html-to-pdf/net/convert-html-to-pdf-in-azure-app-service-linux-with-docker


Regards,

santhiya



Loader.
Up arrow icon