Skip to main content
edwardm25955951
Participant
April 2, 2018
Question

spell check a folder

  • April 2, 2018
  • 1 reply
  • 648 views

Hi!

I'm using Acrobat DC Pro. I want to spell check a folder of documents one by one using Javascript. I want a dialog box to pop up only if there is a spelling error in a file. I only want the dialog for when there are errors. I want to be able to correct the error via the dialog box. After I correct the error, I  want  the spell checking to continue until the end of the folder.

Alternatively: I want a javascript program to spell check a folder a file at a time and to copy only the files that have an spelling error to a temporary folder.

thanks!@ !

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
April 3, 2018

Is the text that you want to check static text or part of a comment or a

field?

edwardm25955951
Participant
April 3, 2018

the main body of the document

try67
Community Expert
Community Expert
April 3, 2018

OK, in that case the first part is not possible, as a script can't change the actual text of the file. It can highlight the misspelled words, but that's about it.

The second part is possible. You would need a script that iterates over all the words in the file and spell-checks each one (using a pre-defined dictionary). If a misspelling is found the file can be saved to another folder and the loop can be broken.

You would then use this script in an Action on your files.

I've developed a Spell-Check Suite for Acrobat (See: Custom-made Adobe Scripts: Acrobat -- Spell Check Suite ), so creating such a script and putting it in an Action should not be too difficult. If you're interested feel free to contact me (try6767 at gmail.com) and we could discuss it further.