Convert PDF to PNG - some information are lost during conversion

Hi,

I’m facing the problem of losing some information during the converting from PDF to PNG using Aspose.PDF version 19.6.0

Project is Azure Function v4 in .net 6 Framework.

Code for using this is from your documentation:

var fs = await GetResourceStreamFromBlobAsync("file-sample_150kB.pdf");

                var document = new Aspose.Pdf.Document(fs);

                var renderer = new Aspose.Pdf.Devices.PngDevice();

                foreach (var page in document.Pages)
                {
                    using (MemoryStream outputStream = new MemoryStream())
                    {
                        renderer.Process(page, outputStream);

                        UploadFileToBlobAsync(outputStream);
                    }
                }

After that, I noticed that always I loss some information after it is converted from PDF to PNG (see the pictures of screenshots, original vs converted…red markers are information that missing in the converted screenshot). Also, in the see the original PDF file.

Original screenshot:
image.png (86.4 KB)

Converted screenshot:
Screenshot - converted.png (66.9 KB)

PDF file:
file-sample_150kB.pdf (139.4 KB)

The strange situation here is that when I use the code above in a Console Application project with the old .Net Framework 4.6.2. and Aspose.PDF 19.1.0, everything works fine!

Can you please check this. We are using your software for a long and this is a huge problem for us.

@trifke

Instead of Aspose.PDF for .NET, can you please try installing Aspose.PDF.Drawing package from NuGet Package Manager. If issue still persists while using it, please let us know. We will further proceed to assist you accordingly.