How can I implement Superscript text in AcroFields?

Posted by lakhansin-22735 under Others on 7/8/2013 | Points: 10 | Views : 3306 | Status : [Member] | Replies : 0
Hello Everyone,

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.
It's urgent.

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.

Lakhan Singh
Tech Lead
BeyondKey System Pvt. Ltd.
Indore, M.P.


(No response found.)

Login to post response