vortex is a simple tool to extract images from pdf files
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
git clone https://github.com/omkar-mohanty/vortex.git && cd vortex
cargo install --path .
vortex pdf_file -o output_folder
From the crate root
vortex resources/sample.pdf -o sample