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/07/14 21:16:04 UTC

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

     [ https://issues.apache.org/jira/browse/PDFBOX-2839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christopher Clark closed PDFBOX-2839.
-------------------------------------
    Resolution: Not A Problem

Having looked at this further I see that a 1:1 correspondence between characters and text positions was not intended

> 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