pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ygor Mutti <ygormu...@jusbrasil.com.br>
Subject TextPosition.getIndividualWidths() returns array with less items than expected
Date Tue, 19 Jul 2016 18:43:23 GMT

The javadoc states that the TextPosition.getIndividualWidths() method
returns "An array that is the same length as the length of the string."
Here is a gist containing a test case in which this statement is false:

It prints a line for two cases where the TextPosition.getUnicode() returns
"fi" while at the same time TextPosition,getIndividualWidths() returns an
array containing a single float.

I've tried to pin down the version in which this behavior has been
introduced and found out it works as expected in 1.2.1 release and does not
since 1.3.0.

Should I open a ticket for this?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message