Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Method PositionWrapper.getTextPosition() is currently protected. The problem is that this limits the ability to extend/customize pdfbox.
For instance, suppose someone wants to override PDFTextStripper.isParagraphSeparation(PositionWrapper position, PositionWrapper lastPosition, PositionWrapper lastLineStartPosition, float maxHeightForLine):
This is intended, since isParagraphSeparation is 'protected'. However, in the subclass (which will be in a different package), it is forbidden to call position.getTextPosition(), which severly limits what can be done.
Could you please make PositionWrapper.getTextPosition() public?