Brett Fleming 603 days ago
To have text in a text field show up as sub- or superscript you need to use the Rich Text Formatting option. Enable that in your field and then read about the richValue property and how to set it using an array of Span objects. Among the properties of these objects are subscript and superscript.
Visit my custom-made PDF scripts website: http://try67.blogspot.com
Contact me personally: email@example.com
I see what you mean, but how do I take a users input, reformat it and write it back to the field in the correct format. Where can I read about richValue property and how to set it using an array of Span objects?
I am somewhat new to this.
I also am not sure why this routine works if document.write() is not supported. I am using Acrobat pro X.
Basically you would use the Format (or even Validate) event to "re-format" the value the user entered.
My guess is that if you look in the console window you'll see a bunch of errors about the document object not being defined, or something of that nature.
Gilad D (try67) Commented 603 days ago | Report
Get started withAcrobat DC
Start free trial
Everything you need to get started using the all-new Acrobat DC.
Learn more >
Last 30 Days