If you need to use only a few currency signs, you can use the walk for some characters, for example, for the Euro sign in PDF format using the built-in Helvetica pdf font with code page 1252:
BaseFont helvetica = BaseFont.createFont("Helvetica", BaseFont.CP1252, BaseFont.NOT_EMBEDDED); Font font = new Font(helvetica, 12, Font.NORMAL); Chunk chunk = new Chunk("Euro symbol: 20\u20ac.", font); document.add(chunk);
But if you want to support all currency symbols, then you should use a font with unicode support (for example, Arial Unicode MS) and paste it into the output PDF. A complete list of Unicode currency symbols can be found at unicode.org .
source share