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 2015/10/31 19:36:27 UTC

[jira] [Commented] (PDFBOX-3077) Type 3 Fonts getting incorrect values for widthofspace

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

Tilman Hausherr commented on PDFBOX-3077:
-----------------------------------------

first file with the fix mentioned in PDFBOX-2508:

String[274.0897,398.81638 fs=20.0 xscale=0.9705882 height=7.4249997 space=5.691918 width=8.152954]O
String[282.24265,398.81638 fs=20.0 xscale=0.9705882 height=7.4249997 space=5.691918 width=4.3676453]t
String[286.6103,398.81638 fs=20.0 xscale=0.9705882 height=7.4249997 space=5.691918 width=6.405884]h
String[293.01617,398.81638 fs=20.0 xscale=0.9705882 height=7.4249997 space=5.691918 width=5.24115]e
String[298.25732,398.81638 fs=20.0 xscale=0.9705882 height=7.4249997 space=5.691918 width=4.950012]r

second file:

String[134.16,157.79321 fs=8.0 xscale=8.0 height=3.8400002 space=4.2965856 width=5.7599945]D
String[139.92,157.79321 fs=8.0 xscale=8.0 height=3.8400002 space=4.2965856 width=5.279999]E
String[145.2,157.79321 fs=8.0 xscale=8.0 height=3.8400002 space=4.2965856 width=4.3200073]L
String[151.66,157.79321 fs=8.0 xscale=8.0 height=3.8400002 space=4.2965856 width=6.4799957]M
String[158.14,157.79321 fs=8.0 xscale=8.0 height=3.8400002 space=4.2965856 width=5.279999]A
String[163.42,157.79321 fs=8.0 xscale=8.0 height=3.8400002 space=4.2965856 width=5.7599945]R
String[173.18,157.79321 fs=8.0 xscale=8.0 height=3.8400002 space=4.2965856 width=5.76001]C
String[178.94,157.79321 fs=8.0 xscale=8.0 height=3.8400002 space=4.2965856 width=5.279999]A


> Type 3 Fonts getting incorrect values for widthofspace
> ------------------------------------------------------
>
>                 Key: PDFBOX-3077
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3077
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Text extraction
>            Reporter: Joel Hirsh
>              Labels: type3
>
> PrintTextLocations on these files are getting ouf of range values for widthofspace.
> The first file has values about 7 times the font height, which is incorrect.
> String[274.0897,398.81638 fs=20.0 xscale=0.9705882 height=7.4249997 space=63.243523 width=8.152954]O
> String[282.24265,398.81638 fs=20.0 xscale=0.9705882 height=7.4249997 space=63.243523 width=4.3676453]t
> String[286.6103,398.81638 fs=20.0 xscale=0.9705882 height=7.4249997 space=63.243523 width=6.405884]h
> String[293.01617,398.81638 fs=20.0 xscale=0.9705882 height=7.4249997 space=63.243523 width=5.24115]e
> String[298.25732,398.81638 fs=20.0 xscale=0.9705882 height=7.4249997 space=63.243523 width=4.950012]r
> The second file has width values completely out of range
> String[134.16,157.79321 fs=8.0 xscale=8.0 height=3.8400002 space=4296585.0 width=5.7599945]D
> String[139.92,157.79321 fs=8.0 xscale=8.0 height=3.8400002 space=4296585.0 width=5.279999]E
> String[145.2,157.79321 fs=8.0 xscale=8.0 height=3.8400002 space=4296585.0 width=4.3200073]L
> String[151.66,157.79321 fs=8.0 xscale=8.0 height=3.8400002 space=4296585.0 width=6.4799957]M
> String[158.14,157.79321 fs=8.0 xscale=8.0 height=3.8400002 space=4296585.0 width=5.279999]A
> String[163.42,157.79321 fs=8.0 xscale=8.0 height=3.8400002 space=4296585.0 width=5.7599945]R
> String[173.18,157.79321 fs=8.0 xscale=8.0 height=3.8400002 space=4296585.0 width=5.76001]C
> String[178.94,157.79321 fs=8.0 xscale=8.0 height=3.8400002 space=4296585.0 width=5.279999]A



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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