'IText7 pdfHtml not working in Azure Web App

I currently have my export to pdf working perfectly in my local, but after I publish to Azure web app, it does not work. Any suggestions? Does this work in Azure? Is it the chromeless thing that will only work on Linux? Confused...

Using .NET6 MVC

EDIT:

    [HttpPost]
            public IActionResult Export(string Form, string sessionId, string fullname)
            {
                FontProvider provider = new DefaultFontProvider();
                string saveDate = DateTime.Now.ToString("yyyyMMddHmmss");
                using (MemoryStream stream = new MemoryStream())
                {
                    ConverterProperties properties = new ConverterProperties();
                    properties.SetFontProvider(new DefaultFontProvider(true, true, true));
                    MediaDeviceDescription mediaDeviceDescription = new MediaDeviceDescription(iText.StyledXmlParser.Css.Media.MediaType.PRINT);
                    properties.SetMediaDeviceDescription(mediaDeviceDescription);
                    HtmlConverter.ConvertToPdf(Form, stream, properties);
                    return File(stream.ToArray(), "application/pdf", fullname + "_" + saveDate +".pdf");
                }
            }


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source