Unable to show extended characters in a PDF using iText

Adobe’s PDF readers come with 14 standard fonts built-in to the reader software. Most third-party reader offer these too. Not surprisingly iText lets you select the standard fonts and use them in the PDFs you create.
If you are finding that you are not able to display extended characters in your PDFs – and by extended characters I mean characters that are not in the Basic Latin Unicode chart – then this could be because you are using one of the 14 built-in fonts and they do not support the character you want to display.
To find out which characters are in the Basic Latin Unicode, look here: http://unicode.org/charts/
You will need to find a font that supports the characters you want to print. For an open-source replacement for the built-in Times New Roman, Arial or Courier you could try Liberation Fonts. We’ve used the Times Liberation font and it does look a bit different that the built-in but its metric compatible and, in my opinion, looks nicer.
Subscribe via RSS
RSS via Email
Follow me