Welcome to the ASP.NET Core feedback portal. We’re happy you’re here! If you have feedback on how to improve the ASP.NET Core, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
Greetings,
I am using HTMLToPDFConverter to covert https://www.google.com webpage to pdf in .net7 framework and in Linux containerized(docker) APi
My code looks like
HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit);
WebKitConverterSettings settings = new WebKitConverterSettings();
//Assign WebKit settings to HTML converter
htmlConverter.ConverterSettings = settings;
//Convert URL to PDF
PdfDocument htmldocument = htmlConverter.Convert("https://www.google.com");
//Save and close the PDF document
htmldocument.Save(outputStream);
htmldocument.Close(true);
Here is the part of error
An error occurred trying to start process 'xvfb-run' with working directory '/app'. No such file or directory",
"stack": "Syncfusion.Pdf.PdfException: An error occurred trying to start process 'xvfb-run' with working directory '/app'. No such file or directory\n at Syncfusion.HtmlConverter.HtmlConverter.ConvertHtmlToPdf(String url, Int32 width, Int32 height, String tempFile)\
Could you please take a look and tell us if we are missing something?
Thanks in advance,
Best regards.