Hello.
We recently encountered an issue with rendering of 3D Pie Chart image in EMF format, inserted into Word. The image inserted into the document looks distorted at 100% magnification, only after magnification is increased to 110% or more, it appears fine.
Are there any options that can be used at the time of inserting the image, that would help with this?
Below is the simple program to illustrate the issue:
byte[] bytearray = null;
try {
bytearray = IOUtils.toByteArray(new FileInputStream(new File(PIE_CHART_3D_EMF)));
} catch (IOException e) {
// Print and display the exceptions
System.out.println(e);
}
// Load the sample Word file to insert EMF image into
Document doc = new Document(EMPTY_DOC, new LoadOptions());
DocumentBuilder builder = new DocumentBuilder(doc);
builder.insertImage(bytearray);
doc.save(UPDATED_DOC);
Attached are the zipped input image in EMF format and the output Word document.
Thank you.
PieChart3d.7z (25.1 KB)UpdatedDocument.docx (88.9 KB)