0 Replies Latest reply on Nov 26, 2012 2:21 AM by rajnikids

    How do I avoid specific words not to search in spell check script.

    rajnikids Level 1

      Hi all,

       

      the below is the script for spell checking the document content.

       

      my request is to skipt spell checking/annonating the  specific words and continue rest.

       

      any help to add in this script.

       

       

      /* Spell Check a Document */

                  var ckWord,numWords, i, j;

                  for (var i = 0; i < this.numPages; i++ )

             {

        numWords = this.getPageNumWords(i);

                            for ( j = 0; j < numWords; j++)

                            {

        ckWord = spell.checkWord(this.getPageNthWord(i,j))

                                      if ( ckWord != null )

                        {

      annot = this.addAnnot

                              ({

                              page: i,

                                               type: "Squiggly",

                              quads:  this.getPageNthWordQuads(i,j),

                                               author: "A. C. Acrobat",

                                               contents: ckWord.toString()

                                              });

                                    }

                          }

                }