I Converted a .docx file into .html using HtmlFixedSaveOptions in aspose words.
Then i opened that html in an html editor(froala editor) and tried to add some text in that file. then text is overlapping in html file.
I tried to use HtmlSaveOptions to convert earlier but i faced alignment problem. and here’s the code snippet i used to convert doc to html.
com.aspose.words.HtmlFixedSaveOptions options = new com.aspose.words.HtmlFixedSaveOptions();
options.setSaveFormat(SaveFormat.HTML_FIXED);
options.setEncoding(Charset.defaultCharset());
options.setExportEmbeddedFonts(true);
options.setExportEmbeddedCss(true);
options.setExportEmbeddedImages(true);
options.setExportEmbeddedSvg(true);
options.setExportFormFields(true);
options.setPrettyFormat(true);
options.setUseHighQualityRendering(true);
options.setDmlEffectsRenderingMode(2);
options.setDmlRenderingMode(1);
options.setDefaultTemplate("");
options.setFontFormat(ExportFontFormat.WOFF);
String outHtmlFile = htmlPath + "test-html" + ".html";
doc.save(outHtmlFile, options);
So, is there any way to convert .docx to html with preserving alignment and feasibility to edit the content in html without overlapping text?