By using the pdfimages command included in most Linux distributions it is easy to extract all pictures included in a PDF document. Instructions on how to use the command can be found here.

Note: the target directory for the extracted images must be created before executing the command, else it will just throw errors.