I have the latex source code and final generated PDF, but not the image files. I'd like to modify the document, so I'd like to recover the image file so that I can recompile. I can (very slowly) manually recover the images by several methods, but I'd really like to have a tool that extracts the images and saves them with the same name that they were called from within the latex source.
For example, on linux with the
pdfimages -j command, I can extract all images to ppm/pbm/jpeg formats, but it does not preserve the file name, so I would have to laboriously edit the source code.
I know that the output PDF retains some info about the file name, since the source document has lines like
and then if I do
grep myImage PDF_file.pdf
Binary file PDF_file.pdf matches