idxth image on the page specified in the last call to
pdfGetImagesas a BMP (Windows bitmap) file. It returns 1 if successful, 0 if there was an error.
This function will create a 1-bit or 24-bit BMP file, depending on the image.
Typically, the PBM/PGM/PPM formats are used on Unix systems and the BMP format on Windows systems, but all formats are available in all versions of the XpdfImageExtract library.