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/11/15 18:46:10 UTC

[jira] [Resolved] (PDFBOX-3109) DrawPrintTextLocations with incorrect coordinates when cropbox

     [ https://issues.apache.org/jira/browse/PDFBOX-3109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tilman Hausherr resolved PDFBOX-3109.
-------------------------------------
    Resolution: Fixed

> DrawPrintTextLocations with incorrect coordinates when cropbox
> --------------------------------------------------------------
>
>                 Key: PDFBOX-3109
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3109
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Text extraction
>    Affects Versions: 2.0.0
>            Reporter: Tilman Hausherr
>             Fix For: 2.0.0
>
>         Attachments: 011939.pdf
>
>
> PrintTextLocations brings different locations when there is a (smaller) cropBox.  This can be seen with the digitalcorpora file 011939.pdf, where the cropbox has x and y = 9.
> {code}
> BT
> /F3 1 Tf
> 10 0 0 10 280.0398 724.3551 Tm
> 0 0 0 0.7 k
> (RESEARCH) Tj
> ET
> {code}
> 1.8:
> {code}
> String[271.0398,40.644897 fs=1.0 xscale=10.0 height=6.2 space=2.3200002 width=4.6400146]R
> String[275.6798,40.644897 fs=1.0 xscale=10.0 height=6.2 space=2.3200002 width=3.7000122]E
> String[279.37982,40.644897 fs=1.0 xscale=10.0 height=6.2 space=2.3200002 width=4.6400146]S
> String[284.01984,40.644897 fs=1.0 xscale=10.0 height=6.2 space=2.3200002 width=3.7000122]E
> String[287.71985,40.644897 fs=1.0 xscale=10.0 height=6.2 space=2.3200002 width=4.6400146]A
> String[292.35986,40.644897 fs=1.0 xscale=10.0 height=6.2 space=2.3200002 width=4.6400146]R
> String[296.99988,40.644897 fs=1.0 xscale=10.0 height=6.2 space=2.3200002 width=4.6400146]C
> String[301.6399,40.644897 fs=1.0 xscale=10.0 height=6.2 space=2.3200002 width=4.6400146]H
> {code}
> 2.0:
> {code}
> String[280.0398,31.644897 fs=1.0 xscale=10.0 height=6.2 space=2.3200002 width=4.6400146]R
> String[284.6798,31.644897 fs=1.0 xscale=10.0 height=6.2 space=2.3200002 width=3.7000122]E
> String[288.37982,31.644897 fs=1.0 xscale=10.0 height=6.2 space=2.3200002 width=4.6400146]S
> String[293.01984,31.644897 fs=1.0 xscale=10.0 height=6.2 space=2.3200002 width=3.7000122]E
> String[296.71985,31.644897 fs=1.0 xscale=10.0 height=6.2 space=2.3200002 width=4.6400146]A
> String[301.35986,31.644897 fs=1.0 xscale=10.0 height=6.2 space=2.3200002 width=4.6400146]R
> String[305.99988,31.644897 fs=1.0 xscale=10.0 height=6.2 space=2.3200002 width=4.6400146]C
> String[310.6399,31.644897 fs=1.0 xscale=10.0 height=6.2 space=2.3200002 width=4.6400146]H
> {code}



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