Hi team,
When we call Paragraph.getParagraphFormat.getStyle().getName() the style name returned in just “Caption” instead of “Caption,Bayer Caption”.
PFA - Source word document
- Image highlighting the style details
The actual style name is (Expected output from aspose): Caption,Bayer Caption
Aspose returns : Caption
Code:
for (Paragraph custBMPara : (Iterable)doc.getChildNodes(NodeType.PARAGRAPH, true))
{
System.out.println("DefinedStylesAndLevels 3.1: " + custBMPara.getParagraphFormat().getStyle().getName());
}
Please let me know if you need any more details.
Thanks,
Satyendra
Satyendra