How can i start from the new line if the text is so long in iText?

Reply

Join Date: Jan 2008
Posts: 56
Reputation: Xessa is an unknown quantity at this point 
Solved Threads: 0
Xessa Xessa is offline Offline
Junior Poster in Training

How can i start from the new line if the text is so long in iText?

 
0
  #1
Oct 20th, 2009
I want to create a pdf file. And it has a long sentence that it won't fit in 1 line.

Which method can I use to continue from the new line when the sentence to be added in the cell to continue from the new line.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 332
Reputation: quuba is on a distinguished road 
Solved Threads: 55
quuba quuba is offline Offline
Posting Whiz
 
0
  #2
Oct 20th, 2009
  1. //PdfPCell txt = new PdfPCell(new Phrase(text));
  2. PdfPCell txt = new PdfPCell(new Paragraph(text, font));
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 240 | Replies: 1
Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC