I'm using iTextSharp to write the text in Pdf using Privae font like TradGothic.
My text Contains superScript Also like- ABCCorp®. but it does not appear in Pdf, it appears as Normal Text rounded circle and R inside.
My code is
BaseFont TGothic20CondsdBold = BaseFont.CreateFont(strTGothicBold20Path, BaseFont.CP1252, BaseFont.EMBEDDED);
cb.SetFontAndSize(TGothic20CondsdBold, 15);
cb.SetLeading(12.5f);
cb.MoveText(187, 185);
cb.ShowText("ABCCorp®");
cb.EndText();
I'm using PdfStamper to write the text over existing layout.
//Use a PdfStamper to bind our source file with our output file
using (PdfStamper stamper = new PdfStamper(reader, fs))
{
//In case of conflict we want our new text to be written "on top" of any existing content
//Get the "Over" state for page 1
PdfContentByte cb = stamper.GetOverContent(1);
cb.BeginText();
//Set the font information for heading
}
Any help with working sample code will be higly apppriciated.
PS:- i have also tried equivalent HTML and othe code for at the rate R , but nothing works