[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to