Works for me. Check that what is really compiled is not \\r\\n. ----- Original Message ----- From: "Gregory Geller" <[EMAIL PROTECTED]> To: "Gregory Geller" <[EMAIL PROTECTED]>; <[email protected]> Sent: Wednesday, December 29, 2004 10:21 PM Subject: RE: [iText-questions] Insert Line Breaks into a Phrase
I have tried to use the below sample code, but the \r\n appears in the text. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Gregory Geller Sent: Wednesday, December 29, 2004 2:09 PM To: [email protected] Subject: [iText-questions] Insert Line Breaks into a Phrase Hi all, Is there a way to insert newline character into the middle of the text that is used to create a Phrase object. This object is then inserted into a Cell object. This is an example of what we would like to do: String text = "this is an example\r\n of some text"; Phrase phrase = new Phrase(text, font); Cell cell = new Cell(phrase); table.addCell(cell); Thanks, Greg ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
