Adding a New Line in iTextSharp

后端 未结 10 1706
伪装坚强ぢ
伪装坚强ぢ 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:21

    For me it worked like this:

    document.Add(new Chunk("\n"));
    

    worked fine, but the space was greater than I expected. so I went with this:

    document.Add(new Paragraph(" "));
    

    the result was a fine and regular space between my components.

提交回复
热议问题