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

Free Support Forum - aspose.com

Opacity is not picking while Converting Byte Stream TO PDF

Hello Team,

We are trying to convert SVG file into PDF by using below aspose function

SvgLoadOptions options = new SvgLoadOptions();
com.aspose.pdf.Document pdf = new com.aspose.pdf.Document(new ByteArrayInputStream(this.source.getBytes()),
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
return outputStream.toByteArray();

SVG file contains Opacity Attribute but in converted PDF file it is not picking the opacity attribute.
below is the SVG element containing opacity attribute
Temp_Cheers.svg.zip (693.5 KB)

so is there a way to pass through this issue. Please share, any suggestion would be appreciated.


Thanks for contacting support.

We have tried to convert your SVG image into PDF and observed that opacity attribute was not present in the generated PDF. It seems like API is ignoring the opacity attribute while generating PDF. Hence, we have logged an issue as PDFJAVA-37196 in our issue tracking system. We will further investigate the reasons behind this issue and keep you posted with the status of its correction. Please be patient and spare us little time.

We are sorry for the inconvenience.