3 Replies Latest reply on Nov 25, 2012 11:17 PM by rajnikids

    Spell check in static pdf

    vinoth_mannu Level 1

      Hi All,

       

      Is there is any spell checking plugin or javascript available in acrobat.

        • 1. Re: Spell check in static pdf
          George_Johnson MVP & Adobe Community Professional

          If you're asking about spell checking text that's part of the regular page contents, as opposed to annotations or form fields, then you can use JavaScript to a degree. For example, see: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/wwhelp/wwhimpl/js/html/wwhel p.htm?href=JS_API_AcroJS.88.1.html#1515776&accessible=true

           

          Example 2 in particular.

           

          If you're asking about something else, post again with more information.

          • 2. Re: Spell check in static pdf
            rajnikids Level 1

            Hi Geroge,

             

            The script below is from Acrobat, which runs the spell check for the entire page contents.

             

            But, I m thinking to include the specific words in this script, which should be showed as error while running script and annonated.

             

            Can you help me.

             

            /* 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()

             

                                                    });

             

                                          }

             

                                }

             

                      }

             

            thanks & regards,

            rajnikanth

            • 3. Re: Spell check in static pdf
              rajnikids Level 1

              Hi George,

               

              Many apologise for the wrong request.

               

              I m just reiterating my request.

               

              But, I m thinking to include the specific words in this script, which should not be showed as error while running script and should not suggested in annonations.

               

              many thanks

              rajnikanth