When converting pdf to png, we are getting jumbled text. Aspsoe (2).png
PDF document contains scanned image with poor quality. Attached delete.png.
We thought that there is nothing can be done, due to poor pdf quality, but then we tried different tool for this and we got better results, we had to switch tools for this, but would be good that same could be achieved with aspose too.
We tried playing with settings, but got no results. Maybe you could advise how we could get normal text?
Aspose.Pdf version: 220.127.116.11
Dim pdfDocument As New Document(“c:/temp/delete.pdf”)
For pageCount As Integer = 1 To pdfDocument.Pages.Count Using imageStream As New FileStream("image" & pageCount & ".png", FileMode.Create) Dim resolution As New Resolution(300) Dim pngDevice As New PngDevice(resolution) pngDevice.Process(pdfDocument.Pages(pageCount), imageStream) imageStream.Close() End Using Next pageCount
Update: After upgrading to Aspose. 17.7 it works as expected.