Image transparency

Hello,


I created a text box and changed the Fill Format to “Picture”. When the picture was inserted I changed the picture transparency to 40% so that background shapes (green star & orange rectangle) will shine through. The transparency shows on the print preview but not output file. In addition, the resolution of the image seems to be gone down. Excel gives a little different output from the preview as well, but keeps the resolution.

Thanks.

Hi,

Thanks for your posting and using Aspose.Cells.

We were able to observe this issue after converting your source excel file into pdf using the latest version: Aspose.Cells
for .NET v8.4.0.4
. We found that transparency of the image does not show up in the output pdf.

We have logged this issue in our database for investigation. We will look into it and fix this issue. Once, the issue is resolved or we have some other update for you, we will let you know asap.

This issue has been logged as

  • CELLSNET-43539 - Transparency of the picture does not show up in the output PDF.

I have tested this issue with the following sample code and attached the output pdf for a reference.

C#


string filePath = @“F:\Shak-Data-RW\Downloads\Excel2PDF-ImageTransparency(RW-23213).xlsx”;


Workbook workbook = new Workbook(filePath);


PdfSaveOptions opts = new PdfSaveOptions();

opts.ImageType = ImageFormat.Png;


workbook.Save(filePath + “.out.pdf”, opts);