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

Timo Boehme resolved PDFBOX-1447.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 1.8.0
         Assignee: Timo Boehme

resolved with rev. 1410892; additionally removed unnecessary check in loop; 
thanks for the contribution
                
> wasted work in PDFMarkedContentExtractor.processTextPosition()
> --------------------------------------------------------------
>
>                 Key: PDFBOX-1447
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1447
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.7.1
>            Reporter: Adrian Nistor
>            Assignee: Timo Boehme
>              Labels: patch, perfomance
>             Fix For: 1.8.0
>
>         Attachments: patch.diff
>
>
> The problem appears in version 1.7.1 and in revision 1409864.  I
> attached a one-line patch that fixes it.
> In method "PDFMarkedContentExtractor.processTextPosition", the loop
> over "sameTextCharacters" should break immediately after
> "suppressCharacter" is set to "true".  All the iterations after
> "suppressCharacter" is set to "true" do not perform any useful work,
> at best they just set "suppressCharacter" again to "true".
> Method "processTextPosition" in class "PDFTextStripper" has a similar
> loop, and this loop breaks immediately after "suppressCharacter" is
> set to "true", just like in the proposed patch.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to