Search code examples
c#pdfitext

How to display ✔ in PDF using iTextSharp?


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.


Solution

  • 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);