HTML to PDF converter not working after publish on Azure App Service

Syaza Liyana 20 Reputation points

I get a blank page in the PDF when I use Html To Pdf Converter on my https website (after published my code to Azure App Service), but it functions well when I call it using http or on my local. Is there any restrictions on Azure that preventing us to do so?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,141 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Deepanshu katara 6,245 Reputation points

    Hi Syaza,

    Welcome to MS Q&A

    As per the similar thread

    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.

    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.