0

I am looking for a command line tool that can spellcheck a PDF file, that can run on Linux. If possible, I would like the tool to be able to accept a custom dictionary.

I know this question already has answers suggesting graphical spellchecker tools, but I want one that can be used from the command line, so that I can automate the process.

1 Answer 1

1

The simplest solution is probably to use pdftotext from poppler-utils to extract the text, and then use an existing command line spell-checker (spell, ispell, aspell, etc...) to check it.

Note that if you are generating the PDF, you are probably better off checking the source of that generation, as words are liable to be bro- ken by being formatted in a PDF.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.