Next link.
(self)
| 8542 | |
| 8543 | @property |
| 8544 | def next(self): |
| 8545 | """Next link.""" |
| 8546 | if not self.this.m_internal: |
| 8547 | return None |
| 8548 | CheckParent(self) |
| 8549 | if 0 and g_use_extra: |
| 8550 | val = extra.Link_next( self.this) |
| 8551 | else: |
| 8552 | val = self.this.next() |
| 8553 | if not val.m_internal: |
| 8554 | return None |
| 8555 | val = Link( val) |
| 8556 | if val: |
| 8557 | val.thisown = True |
| 8558 | val.parent = self.parent # copy owning page from prev link |
| 8559 | val.parent._annot_refs[id(val)] = val |
| 8560 | if self.xref > 0: # prev link has an xref |
| 8561 | link_xrefs = [x[0] for x in self.parent.annot_xrefs() if x[1] == mupdf.PDF_ANNOT_LINK] |
| 8562 | link_ids = [x[2] for x in self.parent.annot_xrefs() if x[1] == mupdf.PDF_ANNOT_LINK] |
| 8563 | idx = link_xrefs.index(self.xref) |
| 8564 | val.xref = link_xrefs[idx + 1] |
| 8565 | val.id = link_ids[idx + 1] |
| 8566 | else: |
| 8567 | val.xref = 0 |
| 8568 | val.id = "" |
| 8569 | return val |
| 8570 | |
| 8571 | @property |
| 8572 | def rect(self): |
nothing calls this directly
no test coverage detected