I have converted a word document to html, the word document contains paragraphs with different line spacing values, among them one paragraph that does not define an explicit spacing (no w:spacing in the openxml file or the default one).
When converting this file to html, all paragraphs with spacing value different than the default value will generate a line-height property, while the ones with no explicit value or default value does not generate the property line-height (so it will inherits it from its ancestors or will depends on the browser if it was never defined).
Is there a way to force Aspose to generate default values for line-height even if it was not explicitly defined in the docx file ?
My docx fileline-spacing.zip (4.1 KB)
Code to convert from DOCX to HTML:
// Load the document. Document doc = new Document(dataDir + String.format(INPUT, name)); HtmlSaveOptions options = new HtmlSaveOptions(); doc.save(dataDir + String.format(HTML, name), options); //Save the document Docx file format System.out.println("Document converted to html successfully.");