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

Method dest

src/__init__.py:8506–8519  ·  view source on GitHub ↗

Create link destination details.

(self)

Source from the content-addressed store, hash-verified

8504
8505 @property
8506 def dest(self):
8507 """Create link destination details."""
8508 if hasattr(self, "parent") and self.parent is None:
8509 raise ValueError("orphaned object: parent is None")
8510 if self.parent.parent.is_closed or self.parent.parent.is_encrypted:
8511 raise ValueError("document closed or encrypted")
8512 doc = self.parent.parent
8513
8514 if self.is_external or self.uri.startswith("#"):
8515 uri = None
8516 else:
8517 uri = doc.resolve_link(self.uri)
8518
8519 return linkDest(self, uri, doc)
8520
8521 @property
8522 def flags(self)->int:

Callers

nothing calls this directly

Calls 2

linkDestClass · 0.85
resolve_linkMethod · 0.80

Tested by

no test coverage detected