In my project I'm using iTextSharp.dll to perform PDF related task like dynamic PDF creation etc. using predefined PDF templates.
In same sequence I want to write superscript "x2" i.e. x raise to the power 2 in one the PDF template textbox. See the attached image for better understanding.
If anyone of you worked like same then please suggest me or you can provide me the link where I will get solution for the same.
And, here is the sample code
string b = path + @"\test-test.pdf";
string bTemplate = string.Empty;
bTemplate = path + @"\Test.pdf";
PdfReader pdfreader = new PdfReader(bTemplate);
PdfStamper stamper = new PdfStamper(pdfreader, new FileStream(b, FileMode.Create));
AcroFields fields = stamper.AcroFields;
fields.SetField("pdfTest", "x2"); //*******Here What I have do, to achieve this?*********
stamper.FormFlattening = true;
Thanks in advance.