HTML to PDF throws exception on background-attachment: initial; CSS style attribute

Using Aspose.PDF .NET 10.6.0 it throws an exception if the attribute “background-attachment: initial;” is defined.


Repro:
new Document(new MemoryStream(File.ReadAllBytes(“test.html”)), new HtmlLoadOptions())

Are there any workarounds for this ?

Hi Frank,

Thanks for your inquiry. I have tested your scenario with shared document using Aspose.Pdf for .NET 10.6.0 and managed to observe the reported issue. For further investigation, I have logged an issue in our issue tracking system as PDFNEWNET-39138 and also linked your request to it. We will keep you updated via this thread regarding the issue status.

Please feel free to contact us for any further assistance.

Best Regards

The issues you have found earlier (filed as PDFNET-39138) have been fixed in Aspose.PDF for .NET 22.6.