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

Method get_displaylist

src/__init__.py:11494–11505  ·  view source on GitHub ↗

Make a DisplayList from the page for Pixmap generation. Include (default) or exclude annotations.

(self, annots=1)

Source from the content-addressed store, hash-verified

11492 return ret
11493
11494 def get_displaylist(self, annots=1):
11495 '''
11496 Make a DisplayList from the page for Pixmap generation.
11497
11498 Include (default) or exclude annotations.
11499 '''
11500 CheckParent(self)
11501 if annots:
11502 dl = mupdf.fz_new_display_list_from_page(self.this)
11503 else:
11504 dl = mupdf.fz_new_display_list_from_page_contents(self.this)
11505 return DisplayList(dl)
11506
11507 def get_drawings(self, extended: bool=False) -> list:
11508 """Retrieve vector graphics. The extended version includes clips.

Callers 3

get_pixmapMethod · 0.80
get_pixmapFunction · 0.80
test_2692Function · 0.80

Calls 2

CheckParentFunction · 0.85
DisplayListClass · 0.85

Tested by 1

test_2692Function · 0.64