sorry for the english, I have this problem: I have a pdfptable and, in some case, I need to write in the cell a lot of text and so the text must to go in a new line automatically. How can I do this? Now if the text arrives at the end of the cell and the remaining
text is cutted.
Why not let the text as a paragraph, So there are newline in the paragraph, then insert it into the pdftable, you can resize the width of the pdfcell, please try to refer to:
g.parix
0 Points
15 Posts
itextsharp, automatically newline in pdfpcell
Dec 13, 2012 08:52 PM|LINK
Hi guys,
sorry for the english, I have this problem: I have a pdfptable and, in some case, I need to write in the cell a lot of text and so the text must to go in a new line automatically. How can I do this? Now if the text arrives at the end of the cell and the remaining text is cutted.
Thanks
kvasanthkuma...
Member
16 Points
10 Posts
Re: itextsharp, automatically newline in pdfpcell
Dec 14, 2012 04:01 AM|LINK
You will have to find the number of characters per line and split the string to multiple lines.
Amy Peng - M...
Star
9968 Points
952 Posts
Microsoft
Re: itextsharp, automatically newline in pdfpcell
Dec 17, 2012 05:24 AM|LINK
Hi g.parix,
Why not let the text as a paragraph, So there are newline in the paragraph, then insert it into the pdftable, you can resize the width of the pdfcell, please try to refer to:
Resize the width of the pdfcell: http://stackoverflow.com/questions/3022468/image-auto-resizes-in-pdfpcell-with-itextsharp .
http://stackoverflow.com/questions/13580611/how-to-set-width-for-pdfpcell-in-itextsharp .
Thanks,
Amy Peng
Feedback to us
Develop and promote your apps in Windows Store