Share via

SelectPdf error on Azure App Service

JJ 1 Reputation point
2021-08-15T22:24:40.987+00:00

I have a .NET core 3.1 web app running on Azure App Service that is using SelectPdf to convert some HTML document to PDF. It was working perfectly on my localhost but once I publish on to Azure, I got the following error no matter how small/simple my HTML document is:

System.Exception: Could not get conversion result header. Data transfer error. Data transmission error 109
at SelectPdf.HtmlToImage.ᜀ(String A_0, String A_1, String A_2, ជ& A_3, String& A_4)
at SelectPdf.HtmlToPdf.ᜁ(String A_0, String A_1, String A_2, String A_3, Boolean A_4)
at SelectPdf.HtmlToPdf.ConvertHtmlString(String htmlString)

My current app service is on the basic Dev/Test plan (does this even matter)?

Azure App Service
Azure App Service

Azure App Service is a service used to create and deploy scalable, mission-critical web apps.


2 answers

Sort by: Most helpful
  1. SelectPdf 0 Reputation points
    2026-05-14T13:30:26.55+00:00

    Starting with SelectPdf v26.2, the Chromium rendering engine also works on Azure Web Apps (Basic plan or above), with the full feature set - every HTML-to-PDF feature available on a desktop/server deployment is also available on Azure Web Apps when the Chromium engine is used. To use Chromium on Azure Web Apps, install the matching Chromium.Windows companion NuGet package alongside the main SelectPdf package, then set RenderingEngine to RenderingEngine.Chromium on the converter options. Full details are in Chromium Engine.

    Was this answer helpful?

    0 comments No comments

  2. bhargaviannadevara-msft 5,476 Reputation points Moderator
    2021-08-16T07:52:31.737+00:00

    @JJ Thanks for reaching out. As mentioned in SelectPdf docs:

    SelectPdf Html To Pdf Converter (v18.3) or above works on Azure Web Apps, on Windows, and an App Service Plan starting with Basic (does not work with Free/Shared plans). Using a Standard or Premium plan will make conversions faster.

    The Web Apps version uses a restricted rendering engine and because of that, some features are not available. To name a few: no support for web fonts, support only for single page PdfHtmlElement objects, no support to exclude elements from conversion.

    Please check if the following helps:

    If the error persists, request you to open an issue with SelectPdf on GitHub here: https://github.com/selectpdf/selectpdf-free-html-to-pdf-converter/issues/

    ----------

    If an answer is helpful, please "Accept answer" and/or "Up-Vote" which might help other community members reading this thread.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.