While trying to generate PDF with html string we get the exception:
The type initializer for ‘Gdip’ threw exception
It was mentioned that it is fixed in version 22.6, we have 22.12 (Skia 2.88.3)
new Aspose.Pdf.Document(
new MemoryStream(System.Text.Encoding.UTF8.GetBytes(htmlText)),
new Aspose.Pdf.HtmlLoadOptions (ResourcesDirectoryPath)
);
On windows that code works perfectly.
Need urgent help and/or workaround (we bought new license for new version and new version looks broken).
Aspose.PDF 22.12.0
SkiaSharp 2.88.3
.NET 6.0
OS: Ubuntu 20.04