How to set PDF paragraph or font line-height with iTextSharp?

后端 未结 3 1763
悲哀的现实
悲哀的现实 2021-02-07 08:00

How can I change the line-height of a PDF font or paragraph using iTextSharp?

3条回答
  •  梦毁少年i
    2021-02-07 08:26

    Not sure in what context your text is in, but I have mine in a PdfCell and I used MinimumHeight and PaddingTop:

    cAddr = new PdfPCell(ptAddr);
    cAddr.MinimumHeight = 101.0F;
    cAddr.PaddingTop = 30;
    

提交回复
热议问题