How to read and few char show as ? for bullets
Can you please provide more details about the specific issue you are facing with bullet characters while reading a Word document? Are you using a specific code or library for this task?
String rawBullet = listLevel.getNumberFormat();
for this line rawBullet is retruning
i tried to handle for that but i am not getting correct
if ("Wingdings".equalsIgnoreCase(font))
{
isBullet = true;
switch (rawBullet)
{
case "\uF0A2":
normalizedBullet = "\u25A0"; // ■
case "\uF0B7":
normalizedBullet = "\u2022"; // •
case "\uF0A7":
normalizedBullet = "\u25B6"; // ►
case "\uF0FC":
normalizedBullet = "\u25AA"; // ▪
default:
normalizedBullet = "\u25A0";
}
need correct method to handle it
@surenderr You should simply call Document.updateListLabels
before accessing Paragraph.ListLabel
property.
doc.updateListLabels();
for (Paragraph paragraph : (Iterable<Paragraph>) doc.getChildNodes(NodeType.PARAGRAPH, true)) {
System.out.println(paragraph.getListLabel().getLabelValue() + "-> " +paragraph.getText());
}
Unicode: U+F06E
Character: , UTF-8 bytes: [-17, -127, -82]
i am printing string list.getLabelString got this output