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

JavaScript and Unicode value busted.

StevenD
Registered: Oct 6 2006
Posts: 368
Answered

I am trying to set page labels with JavaScript and put a Cyrillic Capital Letter De as the prefix character. It's not working. Here is what I get when I try to do this programatically in the console.

setPageLabels(63, ["D", "\u0414", 14]);
console.println(getPageLabel(63));
.14
true

I get a period character. I can insert the character by pasting into the Page Numbering dialog and it works.

I thought Acrobat was very unicode compliant.

If I choose a character such as u0041 which is a capital letter A that works.

StevenD

My Product Information:
Acrobat Pro Extended 9.0, Windows
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
Looks like a bug relating to this JavaScript method. You should report it if you haven't already.

George
StevenD
Registered: Oct 6 2006
Posts: 368
I just reported it. Thanks George.

StevenD