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

Make PositionWrapper.getTextPosition public

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.8.0
    • 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?

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: