SelectPdf error on Azure App Service

JJ 1 Reputation point

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.
7,005 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. BhargaviAnnadevara-MSFT 5,461 Reputation points

    @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:


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

    0 comments No comments