I found the solution to my \n not creating a line break properly.
I was using a Swing.text field to enter some information. I manually entered a
\n in the field and it displayed as a \n in the text box. When I wrote the
content of the text box onto my PDF form, it showed up on the form as a \n
instead of the desired line break.
I found that what was actually saved in the text field was a \\n!
To correct the problem I added a line
String myText2 = myTextWithNewline.replace("\\n","\n");
After this change everything worked fine.
I am posting this to the mailing list to close this topic.
Tim
-------------------------------------------------------------------------
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/