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

Syaza Liyana 20 Reputation points
2024-06-11T06:02:46.1366667+00:00

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
    2024-06-11T06:59:31.75+00:00

    Hi Syaza,

    Welcome to MS Q&A

    As per the similar thread https://learn.microsoft.com/en-us/answers/questions/514432/selectpdf-error-on-azure-app-service

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

    Thanks

    Deepanshu