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...