Hello,
I am trying to convert a HTML that has a SVG to PDF.
However, the PDF generated by Aspose.Words for Java 23.6 (same problem occurs at 24.4) has the image with a black background color.
How to fix that?
Please see attached in the zip file:
- HTML with SVG
- Expected image
- PDF generated by Aspose.Words for Java (black background color)
files.zip (125.4 KB)
Thanks in advance,
Berg
@bergpatricio
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): WORDSNET-26937
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
@bergpatricio We have completed analyzing the issue and concluded that it is not a bug. Aspose.Words’ document model doesn’t support colors that are not fully opaque and sets alpha value of all colors to 1. As a result, we cannot fully support rgba()
and hsla()
CSS functions. MS Word doesn’t support them either. We could implement this feature partially: only for scenarios where these functions specify opaque colors (alfa is set to 1), but we think it would confuse customers if Aspose.Words supported some rgba()
and hsla()
declarations and ignored others.
The issues you have found earlier (filed as WORDSNET-26937) have been fixed in this Aspose.Words for Java 24.7 update.