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

special characters in message box

Daisy007
Registered: Dec 6 2011
Posts: 3
Answered

Hi,
I created a PDF form and need allow special characters to be used in the message boxes.
 
I don't know Javascript or where to put the Javascript.
 
I found a special character list in this post
http://acrobatusers.com/forum/javascript/know-how-javascript-4-special-commands-and-characters-messagebox
 
However, I'm not sure what to do with this list.
 
Can someone tell me where to put Javascript and what the code would look like to allow all the special characters available in the Character Map?
 
Thanks,
Amy

My Product Information:
Acrobat Pro 9.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Which characters in particular are you interested in? That post shows how to use Unicode.

Here's an article with and example PDF that's a unicode string builder.
http://acrobatusers.com/tutorials/2006/using_unicode_text


Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

Daisy007
Registered: Dec 6 2011
Posts: 3
I need to add up arrows and down arrows and a few other characters.

I was thinking I would just add all the special characters, so I don't have to add them later.

I'm not a programmer, I was just assigned to create a PDF form for work.
So, I'm really clueless.

Any code that will help me accomplish adding special characters would be great.

And to tell me exactly where it needs to go.

Thanks,
Amy
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Hmm, you know you are basically asking someone to do your job for free, which I imaging you get paid for:(

We can help you to find the solution yourself. Otherwise you should be looking at hiring a developer.

So the first thing you need to do is tell us when and how you want the message box to popup? And then you need to figure out the character codes for the special characters you want.


Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

Merlin
Acrobat 9ExpertTeam
Registered: Mar 1 2006
Posts: 766
Accepted Answer
As an european language user I'm familiar with non-ascii characters issues, and Thomp provides a nice tool here: http://acrobatusers.com/auc/content/tech_corners/javascript_corner/tips/2006/using_unicode_text/UnicodeStringBuilder.pdf

Here is another free tool here, enter the text into the main field, then copy-paste the result : http://abracadabrapdf.net/file/abra-Txt2Unicode.pdf

:-)

George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1875
The problem with using many of the special characters shown in the PDF in that link is that it is dependent on what OS is being used. For example, many don't show on Windows XP or the Mac. My systems seems to use the Tahoma font, so check the character map application to see what's available and the corresponding Unicode values to use.

Daisy007
Registered: Dec 6 2011
Posts: 3
Thanks for all the suggestions.

I contacted a friend who knows programming and with the information on the page below he helped me get the special characters in the form.

http://acrobatusers.com/auc/content/tech_corners/javascript_corner/tips/2006/using_unicode_text/UnicodeStringBuilder.pdf

Thanks again,
Amy ;-)