pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Duane Nickull <du...@technoracle-systems.com>
Subject Re: Text bounding box
Date Fri, 09 Nov 2012 18:06:48 GMT
Can you post a sample of your code so we can look at it?  If you trace
getFont() to console, what does it return?

Duane Nickull
***********************************
Technoracle Advanced Systems Inc.
Consulting and Contracting; Proven Results!
i.  Neo4J, PDF, Java, LiveCycle ES, Flex, AIR, CQ5 & Mobile
b. http://technoracle.blogspot.com
t.  @duanechaos
"Don't fear the Graph!  Embrace Neo4J"






On 2012-11-08 10:03 PM, "Ravi Hegde" <ravihegde@hotmail.com> wrote:

>
>I am using pdfbox for detecting the text areas in a PDF document. I am
>able to detect the main text area. It includes the text height between
>the base line and ascent. However, characters with descents are painted
>below the base line. Similarly some characters are painted above the
>ascent line. I want the box including the descent and areas above the
>ascent line of the character. I tried
>TextPosition.getFont().getFontBoundingBox() and
>TextPosition.getFont().getFontDescriptor() without luck. Please help me
>to find the best way to detect the complete bounding box around the
>character.
>
>-Thanks for the help.
>
> 		 	   		  



Mime
View raw message