如何使用iTextSharp在PDF中显示✔? [英] How to display ✔ in PDF using iTextSharp?
本文介绍了如何使用iTextSharp在PDF中显示✔?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用iTextSharp在PDF中显示✔字符。但是,角色不会显示在创建的PDF上。请帮帮我。
I am trying to display the "✔" character in a PDF using iTextSharp. However the character won't show up on the created PDF. Please help me on this.
推荐答案
Phrase phrase = new Phrase("A check mark: ");
Font zapfdingbats = new Font(Font.FontFamily.ZAPFDINGBATS);
phrase.Add(new Chunk("\u0033", zapfdingbats));
phrase.Add(" and more text");
document.Add(phrase);
这篇关于如何使用iTextSharp在PDF中显示✔?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文