Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 87158

Adding Custom Dictionary using Javascript

$
0
0

Hi All, We have created a javascript to spellcheck the PDF using the inbuilt dictionary. Now we got a request to add a custom Medical dictionary to Adobe Acrobat. Is that possible to add a custom dictionary to Adobe Acrobat using Javascript. I have gone through the "Javascript for Adobe API Reference.pdf". But there is no reference for adding a full set of dictionary to it. ----------------------------------- spell.customDictionaryCreate("javascript", "en", true); function GetJSTerms(bm, nLevel) { var newWord = bm.name.match(re); var ckWord = spell.checkWord( newWord[0] ); if ( ckWord != null ) { var cWord = spell.addWord( newWord[0], "JavaScript"); if ( cWord ) console.println( newWord[0] ); } if (bm.children != null) for (var i = 0; i < bm.children.length; i++) GetJSTerms(bm.children[i], nLevel + 1); } console.println("\nAdding New words to the \"JavaScript\" " + "dictionary:"); var re = /^\w+/; GetJSTerms(this.bookmarkRoot, 0); ------------------------------------ Would this task is achievable through javascript, please advice. Shaji


Viewing all articles
Browse latest Browse all 87158

Trending Articles