Free Support Forum -

Convert PDF to PNG in C# using Aspose.PDF for .NET - Text mirrored after PDF rasterization

I’m experiencing issues rasterizing attached pdf document. Some parts of the text are horizontally mirrored. Please let me know, how to fix this issue.
My code snippet:
using (var pdfDocument = new Document(InputPath))
for (var i = 1; i <= pdfDocument.Pages.Count; i++)
var pageToProcess = pdfDocument.Pages[i];
var imageDevice = new PngDevice();
using (var imageStream = new FileStream(Path.Combine(outputFolderPath, $"{i}.png"), FileMode.Create))
imageDevice.Process(pageToProcess, imageStream);

Input.pdf (1.4 MB)
Output_1.png (146.1 KB)
Output_2.png (257.2 KB)


We have been able to reproduce the issue in our environment while testing the scenario with Aspose.PDF for .NET 20.1. We have logged it as PDFNET-47552 in our issue tracking system for the sake of correction and will surely inform you as soon as it is resolved. Please be patient and spare us little time.

We are sorry for the inconvenience.

Thanks for your quick response. I am looking forward to hearing from you soon.