We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Jumbled words in png converted from pdf

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: 16.10.1.0
Used code:
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.

@modestas

Thanks for contacting support.

It is good to know that your issue has been resolved after upgrading to latest version of the API. Furthermore, please note that we always recommend to use latest version of the API as it contains all enhancements and fixes. Please keep using our API and in case you need any further assistance, please feel free to contact us.