itext-pdfhtml-dotnet
itext-pdfhtml-dotnet copied to clipboard
Update UserAgentCss.cs
We experienced that when upgrading our pdf solution in Azure from Functions v1 (.NET 4.x) to v3 (.NET Core 3.1) we lost all styling from html content.
The solution was to fix the resource resolution affecting UserAgentCss, which we solved with the following:
ResourceUtil.AddToResourceSearch(typeof(HtmlConverter).Assembly);
The proposed fix in this PR is untested, since we are happy with our current fix. However it would be nice if this got fixed in upstream as well.
Fyi, i could not reproduce the issue locally thru the Azure Function emulator, it was only affecting hosted Azure Functions.