Free Support Forum - aspose.com

Reg: Flow Chart exported to HTML incorrectly

Hi Hafeez,

As i told you the conversion of document containing flow chart was not converted as like in the document. It was misaligned. Each and every part of the flow chart is converting as a image. Here with i attached the sample document and converted file for your reference.
I used the following code for document to HTML conversion.

Code:
String dataDir = “C:\Users\venkateshwaran.d\Desktop\DocMan\FileFolder\Flow.docx”;

Document doc = new Document(dataDir);

doc.save("C:\\Users\\venkateshwaran.d\\Desktop\\DocMan\\FileFolder\\ConvertedFile\\" + "Aspose_DocToHTML.html", SaveFormat.HTML);

Please help me regarding this.

Documents:


This Topic is created by awais.hafeez using the Email to Topic plugin.

@SM0767,

Thanks for your inquiry. In this case, Aspose.Words produces a better HTML output than that of MS Word 2016. I have converted this document to HTML by using MS Word 2016 and attached it here for your reference. msw-2016.zip (102.6 KB)

We would suggest you please upgrade to the latest version of Aspose.Words for Java i.e. 18.4 and save this document to HtmlFixed format as follows:

Document doc = new Document("D:\\Temp\\FileFolder\\Flow.docx");

HtmlFixedSaveOptions opts = new HtmlFixedSaveOptions();
opts.setShowPageBorder(false);

doc.save("D:\\Temp\\FileFolder\\awjava-18.4.html", opts);

See this HtmlFixed output: 18.4.zip (103.8 KB)