I am using iText 1.4.5.
I have a section of code where I want to have a line break at a
particular point in a phrase.
private String myPhrase = "Line one with spaces\nLine two should start
on the next line";
.
.
.
Paragraph logoAndInfo4 = new Paragraph (new Phrase(myPhrase,font));
However, when the PDF is created I get something like:
Line one with spaces\nLine two should start on the next line
Do I need to break myPhrase into 2 different phrases and explicitly add
a line break to get a new line?
(I tried to substitute the iText 2.0.8 library in place of 1.4.5, but my
code hung and I haven't debugged it further to find the reason.)
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/