The extract command can be used to extract images and font files from a PDF file.

mutool extract [options] file.pdf [object numbers]


-p password
Use the specified password if the file is encrypted.
Convert images to RGB when extracting them.

If no object numbers are given on the command line, all images and fonts will be extracted.