You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Christopher Clark (JIRA)" <ji...@apache.org> on 2015/06/23 01:58:00 UTC

[jira] [Created] (PDFBOX-2839) Missing TextPosition(s) in PDFTextStripper

Christopher Clark created PDFBOX-2839:
-----------------------------------------

             Summary: Missing TextPosition(s) in PDFTextStripper
                 Key: PDFBOX-2839
                 URL: https://issues.apache.org/jira/browse/PDFBOX-2839
             Project: PDFBox
          Issue Type: Bug
          Components: Text extraction
    Affects Versions: 2.0.0
            Reporter: Christopher Clark


The protected method `writeString` in `PDFTextStripper` can receive more characters than TextPositions. I tracked the problem down to the `normalizeAdd` method where, for multi-character unicode words, Multiple characters can be added to a line while only a single TextPosition object is added to the corresponding list of TextPositions.

This pdf: https://www.aclweb.org/anthology/W/W13/W13-4011.pdf contains such a character.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org