We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

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.

<span style=“font-size:10.0pt;font-family:“Arial”,“sans-serif”;mso-fareast-font-family:
Calibri;color:#333333;mso-ansi-language:EN-US;mso-fareast-language:EN-US;
mso-bidi-language:AR-SA”>Best Regards