I am processing a word 2010 Document using Docx4J. I want to print the page number and line number of String which i am searching for.
For Example:
My Document is having String called hello at Page 2, Page 6. My o/p should be like this.
Hello found at Page 2 - Line 4, Hello found at Page 6 - Line 6.
I tried to do but i failed.
I was able to Highlight that Text and able to comment by travelling across the document. But I failed to get its line number and page number.
Note : 1)There are two blank Pages Page 3 and Page 4. 2)There are No paragraphs at the end and starting of pages.