Problem with special characters in formatted text

I am trying to add a footer to a pdf document. The problem is that special characters like å,ä and ö are ignored in the generated pdf. The following code is used:

PdfFileStamp stamp = new PdfFileStamp(tempStream, docStream);
FontColor color = new FontColor(100, 100, 100);
FormattedText footerText = new FormattedText("Författäre", color, FontStyle.TimesRoman, EncodingType.Cp1252, false, 10);
stamp.AddFooter(footerText, 10);
stamp.Close();

The resulting pdf contains a footer with the text "Frfattre". Any ideas on why?

Hi Ola,

I have tested the issue at my end using a sample PDF file, but couldn’t notice any problem. Can you please share the input PDF file you’re using at your end, so we could test the issue with that? You’ll be updated with the results accordingly.

We’re sorry for the inconvenience.
Regards,

Never mind, I can see that it works fine in the latest version. I was using an old version of Aspose.Pdf.Kit