line break problem with MultiCell in FPDF

Posted by user156073 on Stack Overflow See other posts from Stack Overflow or by user156073
Published on 2009-09-14T04:48:51Z Indexed on 2010/04/22 21:53 UTC
Read the original article Hit count: 626

Filed under:
|

I am using java port of fpdf. I am encountering fowwlowing errors.

1).When i call multicell 2 times every time the text is printed on a new line.

MultiCell(0, 1, "abcd", currentBorders, Alignment.LEFT, false); //prints on one line
 MultiCell(0, 1, "efg", currentBorders, Alignment.LEFT, false); //prints on next line

I want that there is no line break after the call to multicell. How can i do it?

2)If i do the following thing then some part of my string gets printed on one line and some on next.

 MultiCell(getStringWidth(myString), 1, myStringcurrentBorders, Alignment.LEFT, false);

3)If i do the following thing then there are many blank lines after the line on which myString is printed. It works correctly if i use one 1 ans second parameter

 MultiCell(0, myFontSize, "123456", currentBorders, Alignment.LEFT, false);

What is the problem?

© Stack Overflow or respective owner

Related posts about fpdf

Related posts about java