Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-1425

Make PositionWrapper.getTextPosition public

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.8.0
    • Component/s: None
    • Labels:
      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?

        Attachments

          Activity

            People

            • Assignee:
              tboehme Timo Boehme
              Reporter:
              dbr Daniel Bonniot de Ruisselet
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: