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

Method _loadOutline

src/__init__.py:3961–3970  ·  view source on GitHub ↗

Load first outline.

(self)

Source from the content-addressed store, hash-verified

3959 return value
3960
3961 def _loadOutline(self):
3962 """Load first outline."""
3963 doc = self.this
3964 assert isinstance( doc, mupdf.FzDocument)
3965 try:
3966 ol = mupdf.fz_load_outline( doc)
3967 except Exception:
3968 if g_exceptions_verbose > 1: exception_info()
3969 return
3970 return Outline( ol)
3971
3972 def _make_page_map(self):
3973 """Make an array page number -> page object."""

Callers 1

init_docMethod · 0.95

Calls 2

exception_infoFunction · 0.85
OutlineClass · 0.85

Tested by

no test coverage detected