I'm quite new with docx4j and I'm having a few problems trying to extract the numbering parts text.
I can extract the bullets and simple lists like a), b), c)... but lists like 1, 1.1, 1.1.1, 1.2, 1.2.1, ... returns null.
Am I doing something wrong?
My code:
- Code: Select all
ResultTriple rt = org.docx4j.model.listnumbering.Emulator.getNumber(
wordMLPackage, pStyleVal, numId, levelId);
if(rt!=null)
{
System.out.println("Bullet: " + rt.getBullet());
System.out.println("NumString: " + rt.getNumString());
}
I'm attaching my test file.
Thanks in advance.