如何使用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);