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

Method get_bboxlog

src/__init__.py:11429–11443  ·  view source on GitHub ↗
(self, layers=None)

Source from the content-addressed store, hash-verified

11427 return val
11428
11429 def get_bboxlog(self, layers=None):
11430 CheckParent(self)
11431 old_rotation = self.rotation
11432 if old_rotation != 0:
11433 self.set_rotation(0)
11434 page = self.this
11435 rc = []
11436 inc_layers = True if layers else False
11437 dev = JM_new_bbox_device( rc, inc_layers)
11438 mupdf.fz_run_page( page, dev, mupdf.FzMatrix(), mupdf.FzCookie())
11439 mupdf.fz_close_device( dev)
11440
11441 if old_rotation != 0:
11442 self.set_rotation(old_rotation)
11443 return rc
11444
11445 def get_cdrawings(self, extended=None, callback=None, method=None):
11446 """Extract vector graphics ("line art") from the page."""

Callers 6

test_drawings2Function · 0.80
test_3143Function · 0.80
test_bboxlogFunction · 0.80
test_add_ink_annotFunction · 0.80
test_bboxlog_2885Function · 0.80
test_4639Function · 0.80

Calls 3

set_rotationMethod · 0.95
CheckParentFunction · 0.85
JM_new_bbox_deviceFunction · 0.85

Tested by 6

test_drawings2Function · 0.64
test_3143Function · 0.64
test_bboxlogFunction · 0.64
test_add_ink_annotFunction · 0.64
test_bboxlog_2885Function · 0.64
test_4639Function · 0.64