Can xref be added to the image information returned by page.get_image_info()? This way, we can determine which images need to be extracted based on their positions, or match the extracted images with their location information one by one.
This option is already present! Specify parameter xrefs=True.
Please note that not all images can have an xref. In these cases, the image dictionary shows xref=0.
Thank you for your reply. I’m not sure if this should be mentioned in the MuPDF section, but if we add an xref to the struct fz_image in MuPDF, then all images can have an xref.
… then all images can have an xref.
No! This is wrong.
There are and will always exist images that can not have an xref.