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.