Adding a New Line in iTextSharp

后端 未结 10 1670
伪装坚强ぢ
伪装坚强ぢ 2021-02-19 00:36

I’ve been trying to solve this problem for a while now to no avail. I have some text in iTextSharp I’m trying to put on a newline. I’ve tried using the \\n escape c

10条回答
  •  南方客
    南方客 (楼主)
    2021-02-19 01:26

    document.Add(new Paragraph(" ")); works well for me. Remember, the Paragraph statement automatically adds a line feed. All you have to do is give it something to render. In this case, a space will do just fine.

提交回复
热议问题