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

Method make_bookmark

src/__init__.py:5793–5799  ·  view source on GitHub ↗

Make a page pointer before layouting document.

(self, loc)

Source from the content-addressed store, hash-verified

5791 return loc.chapter, loc.page
5792
5793 def make_bookmark(self, loc):
5794 """Make a page pointer before layouting document."""
5795 if self.is_closed or self.is_encrypted:
5796 raise ValueError("document closed or encrypted")
5797 loc = mupdf.FzLocation(*loc)
5798 mark = mupdf.ll_fz_make_bookmark2( self.this.m_internal, loc.internal())
5799 return mark
5800
5801 @property
5802 def markinfo(self) -> dict:

Callers 1

test_layoutFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_layoutFunction · 0.64