I am reviewing the answer here about Extracting embedded images from a PDF. It is not in Homebrew.
How can you install
pdfimages in OS X El Capitan?
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
You can install via Homebrew with the following command:
brew install poppler
Another command-line program that can extract bitmap images from PDF files is the command-line version of the Unarchiver app called 'unar'. (Doesn't need Homebrew or anything to install.) The command is simply
(The original GUI-based Unarchiver.app does this as well.)