Hi team,
I am using Aspose Word for Java (19.3), trying to save word document into html and expecting a exact page to page layout but actually there are more pages in html than word document.
Document doc = new Document(inputStream);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
HtmlFixedSaveOptions options = new HtmlFixedSaveOptions();
options.setSaveFormat(SaveFormat.HTML_FIXED);
options.setPageIndex(0);
options.setPageCount(doc.getPageCount());
options.setExportEmbeddedImages(true);
options.setNumeralFormat(NumeralFormat.SYSTEM);
options.setExportEmbeddedCss(true);
options.setUseHighQualityRendering(true);
options.setExportEmbeddedSvg(true);
options.setExportEmbeddedFonts(true);
doc.save(baos, options);
PFA sample .docx input and .html is the output. sample document.zip (295.6 KB)
Is it really an issue OR am I doing something wrong?