pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ernest Fayngold <smart...@gmail.com>
Subject Re: Help getting pt fontsize of text.
Date Thu, 13 Jul 2017 16:25:10 GMT
Not sure how to share on sharehoster, as it appears to be a German site and
I don't speak it. So I dropped a sample file onto my google drive here:
https://drive.google.com/open?id=0B3JXBo1bPbwPbTRYZi0zQTctcTA I had to
modify the pdf slightly to remove customer data. Let me know if you cant
open it for some reason or a better place to share.

Thanks

On 2017-07-13 11:54 (-0400), Tilman Hausherr <T...@t-online.de> wrote:
> Hi,>
>
> This is a bit tricky to answer because the pt size doesn't mean much... >
> there are other parameters that influence what you see on the screen. >
> What you need is TextPosition.getTextMatrix(). Even then, the font size >
> of a type3 font has its own logic, some are 1/1000 and some are not. >
> CapHeight may or may not be correct. The best would be you'd share the >
> PDF (upload to sharehoster).>
>
> Tilman>
>
> Am 13.07.2017 um 17:28 schrieb Ernest Fayngold:>
> > Hi,>
> >>
> > I am working on parsing pdf documents and need to get a real font size.
The>
> > document I am working with seems to define a different type 3 font for>
> > different sized text on the page. All the font size is set to 0.24. I
am>
> > trying to use the TextPosition Class to get a real FontSize in Pt for
the>
> > font. The Font descriptor is set to null, however is available for
some>
> > pieces of text written in Arial. I have tried using CapHeight in those>
> > cases, but ran into an issue where there is a ton of white space above
and>
> > below the text that is being captured by the cap height. I was hoping>
> > someone knew a way to get the real font size of the text, as I am at a>
> > complete loss.>
> >>
> > Thanks,>
> >>
> > Ernest>
> >>
>
>
> --------------------------------------------------------------------->
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org>
> For additional commands, e-mail: users-help@pdfbox.apache.org>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message