// Set the start page (note that the page index is not zero-based)
// Set the end page
// Get the text of the specified pages
text = textStripperObj.getText_2(docObj);
In the above code, you can get particular page text and see how are you getting data, based on this you will get some idea about how you can get the required data.
There is no prepaid solution for your question, This is just a way to get your analysis.