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!