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

Free Support Forum - aspose.com

Some chinese character show as square when convert pdf to jpeg

Hi,

some chinese character show as square when using last aspose pdf for .net to convert pdf to jpeg. the code is below :
// Open document
Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(“input.pdf”);



for (int pageCount = 1; pageCount <= pdfDocument.Pages.Count; pageCount++)
{
using (FileStream imageStream = new FileStream(“image” + pageCount + “.jpg”, FileMode.Create))
{
// Create Resolution object
Resolution resolution = new Resolution(300);
// Create JPEG device with specified attributes (Width, Height, Resolution, Quality)
// where Quality [0-100], 100 is Maximum
JpegDevice jpegDevice = new JpegDevice(resolution, 100);

// Convert a particular page and save the image to stream
jpegDevice.Process(pdfDocument.Pages[pageCount], imageStream);
// Close stream
imageStream.Close();
}
}
the source file in the attachment,please tell me how to solve this issue?
Best Regard!

Hi Liu,

Thanks for your inquiry. I have tested your scenario with shared document using Aspose.Pdf for .NET 11.5.0 and managed to observe the reported Chinese characters issue. For further investigation, I have logged an issue in our issue tracking system as PDFNEWNET-40571 and also linked your request to it. We will keep you updated via this thread regarding the issue status.

We are sorry for the inconvenience caused.

Best Regards,

The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan