Example usage for Java org.apache.pdfbox.text PDFTextStripperByArea fields, constructors, methods, implement or subclass
The text is from its open source code.
PDFTextStripperByArea() Constructor. |
void | addRegion(String regionName, Rectangle2D rect) Add a new region to group text by. |
void | extractRegions(PDPage page) Process the page to extract the region text. |
String | getTextForRegion(String regionName) Get the text for the region, this should be called after extractRegions(). |
void | removeRegion(String regionName) Delete a region to group text by. |
void | setSortByPosition(boolean newSortByPosition) The order of the text tokens in a PDF file may not be in the same as they appear visually on the screen. |