How do you underline text with dashedline in ITEXT PDF
问题 I have underlined "Some text" by var par = new Paragraph(); par.Add(new Chunk("Some text", CreateFont(12, Font.UNDERLINE))); document.Add(par); It is possible underline just "Some text" with dashed line (not the paragraph)? Thanks 回答1: This answer tells you how to do it but unfortunately doesn't provide any code so I've provided it below. To the best on my knowledge there isn't a direct way to achieve this in iTextSharp by just setting a simple property. Instead, you need to use a PageEvent