[ https://issues.apache.org/jira/browse/PDFBOX-4138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16384615#comment-16384615 ]
Tilman Hausherr commented on PDFBOX-4138: ----------------------------------------- Your analysis is correct... If I keep the "||" then I could remove all segments with {{notFoundButFirstLeftArticleDivisionIndex}} and {{notFoundButFirstAboveArticleDivisionIndex}}. But I'll leave it as it is for now. There must have been a reason they did this... sadly I can't download the "very old" versions of PDFBox, sourceforge is semi-down. > PDFTextStripper: error in a comparison > -------------------------------------- > > Key: PDFBOX-4138 > URL: https://issues.apache.org/jira/browse/PDFBOX-4138 > Project: PDFBox > Issue Type: Bug > Components: Text extraction > Affects Versions: 2.0.8 > Reporter: Julien Férard > Priority: Minor > > 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). -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org