Pdf image transparency lost

Hello Team, this issue happens on linux/docker when creating thumbnail (image) of Pdf. The transparency of pdf’s inside image is lost. It shows “white” background on resulting png thumbnail. It works fine on windows but fails on linux/docker. Attached is a test Pdf. Tested with latest version of pdf .net standard dll.

Transparent.pdf (63.5 KB)

@maria.techie

Would you please share a sample code snippet as well which you are using at your side. We will test the scenario in our environment and address it accordingly.

Yes,
var pdfRes = new Resolution(150);
var pngD = new PngDevice(pdfRes);

            using (var memS = new MemoryStream())
            {
                Document doc = new Document(pdfStream); // provide Pdf as Stream
                doc.Pages[1].SendTo(pngD, memS); // first page
                File.WriteAllBytes("some-file-name.png", memS.ToArray()); // provide output file
            }

@maria.techie

We tested the scenario in our environment and obtained attached output image. Would you kindly share the output image generated at your side along with the sample docker file that you are using. We will again test the scenario in our environment and address it accordingly.
outputimage.png (110.6 KB)

PS: We used Aspose.PDF for .NET 20.11 for testing.

Thanks, can you please confirm if your output is from Linux / Docker for Linux?
As I said Windows / Docker for Windows does work.

update: will provide the required files by you next.

Attached is output and the project.
Page.png (147.5 KB)
Aspose.Pdf.Transparency.Test.zip (969.7 KB)

Run in actual Linux machine / Docker not from Docker on Windows.

@maria.techie

While testing the scenario in a Linux environment (CentOS 7), we were able to reproduce the issue. Therefore, we have logged it as PDFNET-49085 in our issue tracking system. We will further look into its details and keep you posted with the status of its correction. Please be patient and spare us some time.

We are sorry for the inconvenience.