Free Support Forum - aspose.com

PDF to JPG image

When I use PdfConverter to generate jpegs from a PDF, the text in the PDF is substituted with the font Times New Roman.

Is Aspose.Pdf.Kit able to use fonts embedded in the PDF?

Source PDF: http://www.mtprint.com/asposetest.pdf
Converted JPG: http://www.mtprint.com/asposetest1.jpg

Code:
Dim jpgConverter As PdfConverter = New PdfConverter()
jpgConverter.BindPdf(“C:\convert\asposetest.pdf”)

jpgConverter.DoConvert()

Dim prefix As String = "C:\convert\asposetest"

Dim suffix As String = ".jpg"

Dim imageCount As Integer = 1

While jpgConverter.HasNextImage()
jpgConverter.GetNextImage(prefix + imageCount.ToString + suffix, ImageFormat.Jpeg)
imageCount = imageCount + 1
End While

Hi,

I have tested with Aspose.Pdf.Kit v 2.7.0.0 and was not able to reproduce the error. I have attached the output that I got. Please check to ensure that you are using the latest version.

Thanks.

I downloaded 2.7.0.0 and the fonts are rendered correctly now. Thanks for your assistance!