Export Hidden Text to Output HTML | DOC to HTML Conversion with Hidden Text using Java

Can you give me information (possibly an example) whether using one of the versions of Aspose Words for Java it is possible to save an MSO Word document that has hidden text in HTML format so that the hidden text can be visible in the created HTML document?

I am enclosing an example of an MSO Word document that has hidden text, as well as two HTML documents that show the current state (loading an MSO Word document, and then saving it in HTML format - hidden text is not visible), and the desired state (hidden text is visible).

Thanks in advance for the help!
Best regards!


files.zip (6.3 KB)


You can use Font.Hidden property as shown below to get the desired output. Hope this helps you.

Document doc = new Document(MyDir + "sourceWordFile.doc");
for(Run run :(Iterable<Run>)doc.getChildNodes(NodeType.RUN, true))
doc.save(MyDir + "21.9.html");

Thank you very much for your effort and time. Best regards!