org.apache.pdfbox.util
Class TextPositionComparator

This class is a comparator for TextPosition operators. It handles
pages with text in different directions by grouping the text based
on direction and sorting in that direction. This allows continuous text
in a given direction to be more easily grouped together.