MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / get_page_images

Method get_page_images

src/__init__.py:5067–5077  ·  view source on GitHub ↗

Retrieve a list of images used on a page.

(self, pno: int, full: bool =False)

Source from the content-addressed store, hash-verified

5065 return val
5066
5067 def get_page_images(self, pno: int, full: bool =False) -> list:
5068 """Retrieve a list of images used on a page.
5069 """
5070 if self.is_closed or self.is_encrypted:
5071 raise ValueError("document closed or encrypted")
5072 if not self.is_pdf:
5073 return ()
5074 val = self._getPageInfo(pno, 2)
5075 if not full:
5076 return [v[:-1] for v in val]
5077 return val
5078
5079 def get_page_labels(self):
5080 """Return page label definitions in PDF document.

Callers 9

extract_objectsFunction · 0.80
get_image_bboxMethod · 0.80
get_imagesMethod · 0.80
insert_imageMethod · 0.80
show_pdf_pageMethod · 0.80
extract_objectsFunction · 0.80
show_pdf_pageFunction · 0.80
insert_imageFunction · 0.80
test_pdfpixmapFunction · 0.80

Calls 1

_getPageInfoMethod · 0.95

Tested by 1

test_pdfpixmapFunction · 0.64