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

Tilman Hausherr commented on PDFBOX-3568:
-----------------------------------------

output of PrintTextLocations:

1.8.13:
String[181.92,83.52002 fs=12.0 xscale=12.0 height=6.984375 space=3.8160002 
width=4.7039948]t
String[186.5909,83.52002 fs=12.0 xscale=12.0 height=6.984375 space=3.8160002 
width=7.380005]e
String[193.93779,83.52002 fs=12.0 xscale=12.0 height=6.984375 space=3.8160002 
width=6.251999]s
String[200.1567,83.52002 fs=12.0 xscale=12.0 height=6.984375 space=3.8160002 
width=4.7039948]t

2.1:
String[181.92,83.52002 fs=12.0 xscale=12.0 height=6.918 space=3.0 
width=3.9960022]t
String[185.8829,83.52002 fs=12.0 xscale=12.0 height=6.918 space=3.0 
width=5.328003]e
String[191.17781,83.52002 fs=12.0 xscale=12.0 height=6.918 space=3.0 
width=4.6679993]s
String[195.81271,83.52002 fs=12.0 xscale=12.0 height=6.918 space=3.0 
width=3.9960022]t

the results for 1.8.13 are incorrect, but then, much font related stuff in 
1.8.* is incorrect.

> Characters widths and x-positions incorrect
> -------------------------------------------
>
>                 Key: PDFBOX-3568
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3568
>             Project: PDFBox
>          Issue Type: Bug
>            Reporter: Roman
>         Attachments: screenshot-1.png, test_width1.pdf
>
>
> Using PdfBox 1.8.12 we are extracting character coordinates from 
> [^test_width1.pdf], as described in PDFBOX-3464
> We got two issues here:
> - wrong height, this issue was already addressed by PDFBOX-3464
> - wrong width and X positions of characters, which we are getting from PdfBox 
> via the code:
> {code} 
>    position.getX();
>    position.getWidth();
> {code}
> The coordinates, returned by PdfBox shown on [^screenshot-1.png] with blue 
> color.
> This code works fine on most PDFs. Something is wrong with this specific PDF. 



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

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

Reply via email to