You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2025/02/07 12:26:00 UTC

[jira] [Commented] (PDFBOX-1521) Text extraction: Introduce PDFTextstripper.handleLine exposing all text positions to a subclass when a line of text is written

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

Tilman Hausherr commented on PDFBOX-1521:
-----------------------------------------

Anybody still interested in this change after 12 years? The parameters would be different but in the same spirit.

> 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-2.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 was sent by Atlassian Jira
(v8.20.10#820010)

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