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

PDFTextStripper: error in a comparison

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0.8
    • Fix Version/s: None
    • Component/s: Text extraction
    • Labels:
      None

      Description

      This is very simple. Maybe I'm wrong, but in PdfTextStripper, l. 844
      https://github.com/apache/pdfbox/blob/0e07344c0e3a932f0ca346f7cac4700882c67b5d/pdfbox/src/main/java/org/apache/pdfbox/text/PDFTextStripper.java#L844

      • You want to check if the pos is on the left and above the rectangle (this is better than just on the left or just above);
      • The name of the variable contains "LeftAndAbove".

      ...and the code contains a `||` (or).

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jferard Julien Férard
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: