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

Changing pt size and superscript in Java

cfinley
Registered: Jan 9 2008
Posts: 70

how can I change the pt size and raise up ® trademark character in text generated from a script?
 
The text from my dropdown box will be simple 12pt arial, but in the center of the text there needs to be a ® symbol set to 6pt size with a 6pt baseline shift, so it will appear small and raised

My Product Information:
LiveCycle Designer, Windows
Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Hi cfinley,

You can insert a trademark symbol in the middle of the text in the drop-down list, but you cannot add rich text formatting to text in a drop-down list (the superscript and mixed font size). To add the trademark symbol you would use Unicode for that symbol (00AE). There is an article and example PDF at JavaScript Corner on using Unicode text in PDFs-
[url=http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/using_unicode_text/]http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/using_unicode_text/[/url]

FYI- Java and JavaScript are two completley separate languages and Java has nothing to do with Acrobat. Just letting you know as this is a source of confusion for many people.


Hope that helps,

Dimitri
WindJack Solutions
[url=http://www.windjack.com]www.windjack.com[/url]
cfinley
Registered: Jan 9 2008
Posts: 70
Hi, Thanks for such a quick response

just to be clear here, the rich text I wish to include isn't the text that will appear in the combo (dropdown) list, the rich text would appear inside a standard text box which is populated depending on the dropdown choice

I know when i enable richtext in the field tab, I can change pt size and baseline shift for a single character in the caption, and when I copy this rich text from the caption box and go to previed pdf, it pastes in rich text inside the actual text box....

So, I know my box will accept Rich text - is it just that there is no JavaScript code for changing a pt/baseline size? or was my original question confusing in that you thought I meant rich text inlide the combo box list?
Thanks
cfinley
Registered: Jan 9 2008
Posts: 70
looking at the question again I guess I forgot to mention the populating a 2nd text field part, sorry about that