(The open source Java library for manipulating docx files)
Is there a way in which we can find the position of a paragraph within a docx file using docx4j API ?
- Posts: 10
- Joined: Fri Apr 14, 2017 6:05 pm
If you have a reference to the P object, you can find its position in the content list.
If you don't have a reference to the P object, you'll need to find it first. The usual ways are either TraversalUtils, or XPath.
- Posts: 3687
- Joined: Wed Mar 19, 2008 11:47 pm
Return to docx4j
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 34 guests