Adding a New Line in iTextSharp

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

    With the addition of the spacing attriubtes, you can precisely set the height of the break...

    var spacerParagraph = new Paragraph();
    spacerParagraph.SpacingBefore = 4f;
    spacerParagraph.SpacingAfter = 0f;
    document.Add(spacerParagraph);
    

提交回复
热议问题