[ 
https://issues.apache.org/jira/browse/PDFBOX-1521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13634608#comment-13634608
 ] 

Dustin Spicuzza commented on PDFBOX-1521:
-----------------------------------------

This is also a feature that I would like as well. 

The patch is incomplete in version 1.8.1, as it did not replace the second 
invocation of writeLine() with a call to handleLine()
                
> Text extraction: Introduce PDFTextstripper.handleLine exposing all text 
> positions to a subclass when a line of text is written
> ------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-1521
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1521
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Text extraction
>    Affects Versions: 1.8.0
>            Reporter: znerol
>            Priority: Minor
>         Attachments: pdfbox-handleLine.patch
>
>
> In a subclass of PDFTextStripper I like to record the location and dimension 
> of each extracted line of text. By simply extracting the call to writeLine 
> from writePage into a protected method handleLine (in the spirit of 
> handleLineSeparation) this information gets exposed to subclasses.

--
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