Duplicated image before a heading after an HTML conversion

Dear all,

I tried to convert a DOCX document (/heading-numerotation_1.1_replaced_by_duplicated_icon.docx), and got an extra copy of a previous image duplicated right left to the heading paragraph. Here is the very simple code used to this purpose:

Dim doc As Words.Document =
    New Words.Document("D:\path\heading-numerotation_1.1_replaced_by_duplicated_icon.docx")
doc.Save("D:\path\html-aspose\heading-numerotation_1.1_replaced_by_duplicated_icon.html")

Please find attached a ZIP file containing the following elements:

  • heading-numerotation_1.1_replaced_by_duplicated_icon.docx: original test document
  • html-aspose: HTML conversion performed by Aspose
  • html-word: HTML conversion performed by Word (“Save As…” operation)

Used version is Aspose.Words 18.10 for Windows (.NET, 32 bits).

Regards,

–
Monir

sample.zip (42.7 KB)

@monir.aittahar,

We tested the scenario and have managed to reproduce the same problem on our end. For the sake of correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSNET-18969. We will further look into the details of this problem and will keep you updated on the status of correction. We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-18969) have been fixed in this Aspose.Words for .NET 21.4 update and this Aspose.Words for Java 21.4 update.

Hi @awais.hafeez,

I just tested the 21.4 update and it works like a charm. Thanks!

Regards,
Monir

1 Like