Renders HTML to PDF or PNGs
- Based on PuppeteerSharp
- Give the CLI version a try - Codeuctivity.HtmlRendererCli.exe
await using var chromiumRenderer = await Renderer.CreateAsync();
await chromiumRenderer.ConvertHtmlToPdf(sourceHtmlFilePath, desitinationPdf);
await using var chromiumRenderer = await Renderer.CreateAsync();
await chromiumRenderer.ConvertHtmlToPng(actualFilePath, pathRasterizedHtml);
sudo apt install libgbm-dev libatk-bridge2.0-0 libnss3 libcups2 libxkbcommon0 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 libpango-1.0-0 libcairo2 libasound2
... and if that fails you can either find out which dependency is missing on your system or you take a shortcut
sudo apt install -y chromium-browser