Open GoogleCodeExporter opened 8 years ago
I have the same problem. The bug is caused by the way that the cell text length
is
calculated. This length takes into account the length of each character of the
string
but only the "standard" characters and not the specials like yours "ü" or
similar (á,
Á, ç, ñ).
I've solved it modifying (version 0.1.4.9) the function "nbLines" of class
"PDF.as".
In this function you have to replace line 3107 which code is:
l+=cw[c];
For something that compares if cw[c] value is number and if it's not, then
assign
some valid value.
if (isNaN(cw[c])){
l+=580;
}
else{
l+=cw[c];
}
This "580" value is used in other functions of the same class that also
calculates
the length of the string.
I expect in the next versión of the library this bug will be solved but now
you coult
try to patch it with those lines.
Original comment by cyberhom...@gmail.com
on 22 Jun 2009 at 1:53
Patch by cyberhomerj works for me
Original comment by sne...@gmail.com
on 13 Oct 2009 at 1:52
cyberhomerj, thanks for your patch! It took me hours for fighting again this
issue,
your patch works great!! Thanks again!
-Jens
Original comment by sect...@gmail.com
on 4 Nov 2009 at 5:50
Hi there,
Good catch cyberhomerj!
This is fixed in the latest drop on the svn.
Thanks!
Thibault
Original comment by thibault.imbert
on 24 Jan 2010 at 2:09
Original issue reported on code.google.com by
balaje...@gmail.com
on 24 Apr 2009 at 7:49Attachments: