Hi,
I'm writing a little soft to generate a pdf file (with text and image) with the Pear class File_PDF.
With multiCell File_PDF class, it's required to indicate the line's number to paginate the text. With my pagination and font style, I calculate that I can insert 85 chars by line. So, to define automatically this number, I wrote a function with modulo... and the result is really strange...
| Code: |
$nbLinesMsgIndication = ($bufMsgIndicationTxtVw->get_char_count())%85;
print $bufMsgIndicationTxtVw->get_char_count(); // => 142
print $nbLinesMsgIndication; // => 57 !!!! |
Someone have an explication about this strange modulo result ???
Thanks
Mote