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

John Hewson commented on PDFBOX-3056:
-------------------------------------

Oh, and one tip: never use PDFont#getHeight(). Logical glyph height is always = 
current font size. You can always calculate visual bounds of a glyph if you 
want by converting it to a GeneralPath (see PageDrawer) but there's probably no 
need, logical bounds are quick and will have a consistent baseline, which 
should make extraction easier.

> Make PDFTextStreamEngine public
> -------------------------------
>
>                 Key: PDFBOX-3056
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3056
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>            Reporter: Ben McCann
>             Fix For: 2.0.0
>
>
> I'd like to experiment with writing my own text extractor that works better 
> for my use case than PDFTextStripper does. Hopefully I can port some of the 
> improvements to PDFTextStripper if I get something working well. I'd really 
> like PDFTextStreamEngine and its constructor to have increased visibility as 
> I believe that it's pretty reasonable for people to be able write their own 
> PDFTextStrippers without having to reimplement showGlyph.



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