Free Support Forum - aspose.com

Font corrupted in converted image

Hello, I am using Aspose in android environment. There are some font corrupted in converted image(attached pdf2image.PNG), how to fix it? Thanks in advanced. Sample code:


java.io.OutputStream imageStream = null;
try {
imageStream = new java.io.FileOutputStream(Environment.getExternalStorageDirectory().getPath()+"/my_Converted_Image_" + pageCount + “.jpg”);
} catch (FileNotFoundException e) {
e.printStackTrace();
}
// Create Resolution object
com.aspose.pdf.devices.Resolution resolution = new com.aspose.pdf.devices.Resolution(250);
// Create JpegDevice object where second argument indicates the quality of resultant image
com.aspose.pdf.devices.JpegDevice jpegDevice = new com.aspose.pdf.devices.JpegDevice(resolution, 100);
// Convert a particular page and save the image to stream
jpegDevice.process(pdfDocument1.getPages().get_Item(pageCount), imageStream);

// Close the stream
try {
imageStream.close();
} catch (IOException e) {
e.printStackTrace();
}


Hi Kevin,


Thanks for your inquiry. We are looking into your issue and will get back to you soon.

We are sorry for the inconvenience caused.

Best Regards,

Hi Kevin,


We apologize for delayed response. We have tested the scenario and notice the font issue in output JPG image. We have logged a ticket PDFANDROID-350 in our issue tracking system for further investigation and resolution. We will notify you as soon as it is resolved.

We are sorry for the inconvenience caused.

Best Regards,

The issues you have found earlier (filed as PDFANDROID-350) have been fixed in Aspose.Pdf for Android 1.7.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.