I am having trouble with some special slovak characters (for example č, ň and ť). They are disappearing in the itextsharp generated pdf.
From what I've been able to find, this problem has to do with encoding of my BaseFont
. Currently I am using this:
BaseFont.CreateFont(BaseFont.HELVETICA, iTextSharp.text.pdf.BaseFont.CP1250, BaseFont.NOT_EMBEDDED)
Someone suggested that this should work:
BaseFont.CreateFont(BaseFont.HELVETICA, iTextSharp.text.pdf.BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED)
But it throws this exception error:
System.ArgumentException was caught
Message='Identity-H' is not a supported encoding name.
Parameter name: name
ParamName=name
Source=mscorlib
Anyone know a possible reason and solution to this?