It is currently Fri Dec 27, 2024 1:02 pm
org.docx4j.wml.ObjectFactory factory = new org.docx4j.wml.ObjectFactory();
org.docx4j.wml.CTBookmark bookmarkStart = factory.createCTBookmark();
bookmarkStart.setName("something");
org.docx4j.wml.PPr ppr = ((org.docx4j.wml.P)o).getPPr(); // get paragraph propertires
PPrBase.NumPr numPr = ppr.getNumPr();
if( numPr != null) { // This paragraph is numbered
System.out.println("This paragraph has numbering level: " + numPr.getIlvl().getVal());
}
<w:p>
<w:pPr>
<w:listPr><w:ilvl w:val="0"/><!--skip-->
</w:listPr>
</w:pPr>
<w:r><w:t>Bulleted item 1</w:t></w:r>
</w:p>
Total posts 10113 • Total topics 2844 • Total members 2075