HTML page overlap (1590)

Hi,

When I generate an HTML of the attached two-page Word document, pages overlap in the saved file.

Here’s the code:

String documentPath = "test.docx";

Document document = new Document(documentPath);

HtmlSaveOptions saveOptions = new HtmlSaveOptions();

saveOptions.setImagesFolder("/images/");

document.save("test-aspose.docx.html", saveOptions);

Can you check this?

Thanks,
Zeljko

test.docx.zip (84.6 KB)
test-aspose.docx.html.zip (1.4 KB)

@Zeljko,

Thanks for your inquiry. 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 as WORDSNET-16619. 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.

@Zeljko,

Thanks for being patient. Regarding WORDSNET-16619, our product team has completed the work on your issue and has come to a conclusion that they will not be able to implement the fix to your issue. Your issue (WORDSNET-16619) will be closed with ‘Won’t Fix’ resolution.

The document is split into two pages by a page break and images on each pages are positioned relative to page borders. Such positioning cannot be preserved in HTML, because it is a page-less format and all content in a HTML document is placed on one single big page.

Instead, this document should be saved to a fixed-page format such as HtmlFixed.

Document doc = new Document("D:\\Temp\\test.docx");
doc.save("D:\\Temp\\awjava-18.3.html", SaveFormat.HTML_FIXED);