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

Free Support Forum - aspose.com

Css color:transparent and color:rgba(...) not working properly


I'm using Aspose.Pdf for .NET 17.1.0, trial version.
I'm adding html table to page as HtmlFragment. But color:transparent and color:rgba(...) do not work, I always get full opacity.
For background-color both options work fine.

Code example (result attached):

var html = @"
transparent rgba

var pdfDocument = new Document();
var currentPage = pdfDocument.Pages.Add();
currentPage.Background = Color.Gray;

var htmlFragment = new HtmlFragment(html);

Hi There,

Thanks for contacting support.

I used your code and was able to replicate the issue. Therefore, I have logged this issue as PDFNET-14128 in our issue tracking system. We will further look into the issue details and keep you updated on the status. Please be patient and spare us a little time. We are sorry for this inconvenience.

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