Aspose inserts a border on an image

Hi:

When we are inserting an image on a mergefield, the image appears with a border. Why?

We are using Aspose Words for Java 13.1.0.

Hi Johnnatan,


Thanks for your inquiry. First off, I would suggest you please upgrade to the latest version of Aspose.Words (13.9.0). You can download it from the following link:
http://www.aspose.com/community/files/72/java-components/aspose.words-for-java/default.aspx

I hope, this helps.

In case, the problem still remains, please attach 1) your input Word document, 2) output Word document showing the undesired behavior and 3) source code you used to generate the output document here for testing. As soon as you get these pieces of information to me, I’ll start investigation into your issue.

Best regards,

Hi,


Here we send the requested. Thanks.

Hi Johnnatan,


Thanks for your inquiry. I am afraid, I was unable to reproduce this issue on my side. I have attached output document and a sample image file here for your reference. I used Aspose.Words for Java 13.9.0 and the following simple code to generate the attached document on my side
Document doc = new Document(“C:\Temp\CRITERIA+TECHNOLOGIES+PERU+Adq+e+instalación+de+un+certificado+digital+para+servidor+Exchange+2010±+original.doc”);
DocumentBuilder builder = new DocumentBuilder(doc);
doc.getMailMerge().execute(new String[]{“osifecha”}, new Object[]{“some value”});
builder.moveToMergeField(“osifirma”);
builder.insertImage(“C:\Temp\image1.png”);
doc.save(“C:\Temp\out.doc”);
Could you please double check if your’re using the latest version of Aspose.Words on your side? Please unzip Aspose.Words.jdk16.jar file, navigate to ‘META-INF’ folder and then open ‘MANIFEST.MF’ with Notepad to verify the version number. Also, please create a standalone simple application (for example a Java Console Application Project) that helps us reproduce the same problem on my end and attach it here for testing. As soon as you get this Java Application ready for me, I’ll investigate your issue further . Thanks for your cooperation.

Best regards,