These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

specifiying pt size/baseline in JavaScript?

cfinley
Registered: Jan 9 2008
Posts: 70

Hi

I am using a dropdown box to populate product names in another text box, and the names will need ® or ™ - how do I specify in my JavaScript that I want to change the pt size and adjust the baseline shift?

for example all the other letters in the name would be 12pt , but the ® would be 6pt size, baseline raised 6pt - to be used in a change script for a dropdown box as follows

switch(xfa.event.change)
{
case "My Part 1":
ProdName.rawValue = "Product® Family"
break;
}

anyone know how I can specify the size and position of just the ® character in the middle of the string?

cfinley
Registered: Jan 9 2008
Posts: 70
ok I was told this could be accomplished with xhtml/rich text settings for the text field, but I don't know how to properly insert the xhtml into the JS change event that would populate the field

and to complicate things even more, when I asked the teacher of the Dreamweaver class I just started, she said I would need to create a CSS to make the superscript ® in xhtml... is a css in a pdf even possible?

any thoughts?