Sometimes you need a way to extract all images in a PDF but then you have a directory of files and you need to extract them iteratively. Prerequisites: 1. Install Cygwin or linux environment with Perl support. 2. Install ImageMagick. 3. Install GhostScript. Afterward run the following