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

Method get_page_xobjects

src/__init__.py:5171–5179  ·  view source on GitHub ↗

Retrieve a list of XObjects used on a page.

(self, pno: int)

Source from the content-addressed store, hash-verified

5169 return doc[pno].get_text(option, clip=clip, flags=flags, sort=sort)
5170
5171 def get_page_xobjects(self, pno: int) -> list:
5172 """Retrieve a list of XObjects used on a page.
5173 """
5174 if self.is_closed or self.is_encrypted:
5175 raise ValueError("document closed or encrypted")
5176 if not self.is_pdf:
5177 return ()
5178 val = self._getPageInfo(pno, 3)
5179 return val
5180
5181 def get_sigflags(self):
5182 """Get the /SigFlags value."""

Callers 5

get_xobjectsMethod · 0.80
insert_imageMethod · 0.80
show_pdf_pageMethod · 0.80
show_pdf_pageFunction · 0.80
insert_imageFunction · 0.80

Calls 1

_getPageInfoMethod · 0.95

Tested by

no test coverage detected