Acrobat User Community Forums

You are not logged in.     Log in to your AUC account.     Don't have an account? Sign up today

#1 2008-01-12 05:55:02

cfinley
Member
Registered: 2008-01-09
Posts: 41

Changing pt size and superscript in Java

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


A straight line is just a one dimensional circle....


My Product Information:
LiveCycle Designer Standard 8 / Windows

Offline

 

#2 2008-01-12 13:17:10

Dimitri
Member

Registered: 2007-04-23
Posts: 215

Re: Changing pt size and superscript in Java

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-
http://www.acrobatusers.com/tech_corner … code_text/

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
www.windjack.com

Offline

 

#3 2008-01-13 00:32:26

cfinley
Member
Registered: 2008-01-09
Posts: 41

Re: Changing pt size and superscript in Java

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


A straight line is just a one dimensional circle....

Offline

 

#4 2008-01-13 00:34:40

cfinley
Member
Registered: 2008-01-09
Posts: 41

Re: Changing pt size and superscript in Java

looking at the question again I guess I forgot to mention the populating a 2nd text field part, sorry about that


A straight line is just a one dimensional circle....

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

AcrobatUsers.com  >>  User Groups • News • Events • Articles • Blogs • How To • Resources • Member Log in