This guide collects instructions about extracting and saving images from PDF file. This is possible by using pdfimages command line utility. pdfimages is built-in in Ubuntu along with poppler-utils package. pdfimages can save images in .ppm, .pbm, and .jpg formats.

Extract Images As Is

Explanation: the first command will extract images into .ppm or .pbm format. The -nnn addition is a clue for pdfimages to append file number to file name. The second command will do the same for .jpg format.