Feb-22-2023, 10:15 PM
Post entire error including traceback.
What do you think this does?
From the documentation:
https://pymupdf.readthedocs.io/en/latest...mages.html
What do you think this does?
image_ext = img['str']This looks like indexing for a dictionary, but from all the examples I can find, img uses integer indexing, not key indexing.
From the documentation:
https://pymupdf.readthedocs.io/en/latest...mages.html
Quote:The question remains: “How do I know those ‘xref’ numbers of images?”. There are two answers to this:
“Inspect the page objects:” Loop through the items of Page.get_images(). It is a list of list, and its items look like [xref, smask, …], containing the xref of an image. This xref can then be used with one of the above