Free Support Forum - aspose.com

Image overlaps the content while converting DOCX to HTML using Aspose.words Java

Hi,

Greetings.

We use Aspose.words Java to convert docx file to html.

Now when we try to convert this docx file to html, the image in the file overlaps with the content.
Some of the content are hidden by the image and alignment is not matching with the original docx file.
It is difficult to use the converted HTML file.

Please suggest ways we can mitigate this and let us know your valuable suggestions to resolve this issue.

Please check the original docx file and the converted html file attached.
ErrorFiles.zip (53.1 KB)

@EdwinPearson

We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-21856. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

@EdwinPearson

It is to inform you that the issue which you are facing is actually not a bug in Aspose.Words. So, we have closed this issue (WORDSNET-21856) as ‘Not a Bug’.

The first page of the document contains a floating shape and a page break. The page break shifts the text after the shape to the second page in paginated documents and guarantees that the image and the text won’t overlap. However, since HTML is not paginated, the page break has no effect in the resulting document and cannot prevent the shape from overlapping the text. As a result, the text appears under the shape. The same effect is seen in the HTML document generated by MS Word.

Please export the document to HtmlFixed file format instead of normal flow-format HTML.