Hi
I am using aspose-words-16.8.0 to extract data from word document and converting to String.
While doing so, i am facing several issues like:
· Bullets are not kept.
· Hidden header are getting extracted.
· Special Characters are well translated (ex: – )
Thanks for your help.
Sandhya
Hi Sandhya,
Thanks for your inquiry. Please use Node.ToString method (SaveFormat) to get the text of a node as shown in following code example. Please use ListLabel.LabelString property to get a string representation of list label.
Hope this helps you. Please let us know if you have any more queries.
Document doc = new Document(MyDir + "in.docx");
doc.updateListLabels();
for (Paragraph para : (Iterable)doc.getChildNodes(NodeType.PARAGRAPH, true)) {
if(para.getListFormat().isListItem())
{
ListLabel label = para.getListLabel();
System.out.print("List label combined with text: " + label.getLabelString());
System.out.println(para.toString(SaveFormat.TEXT));
}
}