Search code examples
javaitext

Inserting greater than or equal symbol in to an iText PDF, ie >=


Does anyone know an easy way to include the greater than or equal symbol in an iText PDF document without resorting to custom fonts?


Solution

  • You need to add the unicode for this character. Also make sure that the char is included in the font you use.

    document.add( new Paragraph("\u2265"));