The *nix xpdf package includes a pdfimages command, which claims to be a Portable Document Format (PDF) image extractor.

Available on most modern Linux distros, and also in source code for other capable operating systems.

Cheers