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!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

4
Votes

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)\
 

Attached the docker file and snapshot of packages used

Could you please take a look and tell us if we are missing something?


Thanks in advance,

Best regards.