pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <THaush...@t-online.de>
Subject Re: DrawPrintTextLocations doesn't match character box
Date Thu, 08 Feb 2018 21:58:38 GMT

One can't get the bounding box from a path because it's a PDF stream. 
All we have there is the first PDF operator from the charproc, here: 
"0.602 0 -0.35 -0.968 0.734 1.075 d1". If that one is incorrect... too bad.


Am 08.02.2018 um 22:45 schrieb Esteban R:
> Hello. The boxes drawn with DrawPrintTextLocations for the following PDF file (simplification
of a real-life doc) are not what I expected (they contain a lot of white space): http://www.filedropper.com/minimunsample
> See the output here: http://www.filedropper.com/minimunsample-marked-1
> Please note: if I select the text in Adobe Reader, the selection is bigger than expected,
> What is wrong? Can I somehow get the smaller box that encloses the char or, at least,
tell that something is wrong?
> The font is a Type3 font.
> Esteban

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

View raw message