To be able to view Unicode characters in iTextSharp correctly, a font that supports the code points that are being used must be added.
The main point is to specify IDENTITY-H
, which provides Unicode support for a source that allows it.
For example, for the Arial font (found in the Windows font folder):
Dim arial As BaseFont = BaseFont.createFont("c:\windows\fonts\arial.ttf", BaseFont.IDENTITY_H, BaseFont.EMBEDDED)
fuente = New Font(arial, 12)
And then, it can be used in a paragraph:
document.Add(New Paragraph("¡Muchísimas felicidades y buen fin de año!", fuente))