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

Tilman Hausherr commented on PDFBOX-3203:
-----------------------------------------

You claim that the font size is 32.1. But here's the content stream of the 
first file:
{code}
/Part << /MCID 0 >> BDC
  BT
    /T1_0 17.933 Tf
    130.407 706.689 Td
    [ (An) -278 (Ar) 20 (c) 10 (hitecture) -278 (f) 20 (or) -278 (P) 30 
(arallel) -278 (T) 80 (opic) -278 (Models) ] TJ
{code}
So the font size is 17.933, not 32.1. And here's the output of the 
PrintTextLocations tool:
{code}
String[130.407,85.310974 fs=17.933 xscale=17.933 height=11.261925 
space=4.9853745 width=12.947632]A
String[143.35463,85.310974 fs=17.933 xscale=17.933 height=11.261925 
space=4.9853745 width=10.957062]n
String[159.29706,85.310974 fs=17.933 xscale=17.933 height=11.261925 
space=4.9853745 width=12.947632]A
String[172.24469,85.310974 fs=17.933 xscale=17.933 height=11.261925 
space=4.9853745 width=6.975937]r
String[178.86197,85.310974 fs=17.933 xscale=17.933 height=11.261925 
space=4.9853745 width=9.970749]c
String[188.65338,85.310974 fs=17.933 xscale=17.933 height=11.261925 
space=4.9853745 width=10.957062]h
String[199.61044,85.310974 fs=17.933 xscale=17.933 height=11.261925 
space=4.9853745 width=4.985367]i
String[204.59581,85.310974 fs=17.933 xscale=17.933 height=11.261925 
space=4.9853745 width=5.971695]t
String[210.5675,85.310974 fs=17.933 xscale=17.933 height=11.261925 
space=4.9853745 width=9.970749]e
String[220.53825,85.310974 fs=17.933 xscale=17.933 height=11.261925 
space=4.9853745 width=9.970749]c
String[230.509,85.310974 fs=17.933 xscale=17.933 height=11.261925 
space=4.9853745 width=5.971695]t
String[236.4807,85.310974 fs=17.933 xscale=17.933 height=11.261925 
space=4.9853745 width=10.957062]u
String[247.43776,85.310974 fs=17.933 xscale=17.933 height=11.261925 
space=4.9853745 width=6.975937]r
String[254.4137,85.310974 fs=17.933 xscale=17.933 height=11.261925 
space=4.9853745 width=9.970734]e
{code}
And here's the javadoc of the method you mention - note the second sentence!
{code}
    /**
     * This will get the font size in pt. To get this size we have to multiply 
the pdf-fontsize
     * and the scaling from the textmatrix
     *
     * @return The font size in pt.
     */
{code}


> Fractional font sizes are reported scaled
> -----------------------------------------
>
>                 Key: PDFBOX-3203
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3203
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 2.0.0
>         Environment: Mac OS X
>            Reporter: Dirk Groeneveld
>         Attachments: senellart10.pdf, smola10.pdf
>
>
> Non-integer font sizes are apparently reported by PDFBox scaled by a factor 
> of 10. For example, a font size of "32.1" comes out as 321.



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