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

Function test_pagepixmap

tests/test_pixmap.py:28–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26
27
28def test_pagepixmap():
29 # pixmap from an EPUB page
30 doc = pymupdf.open(epub)
31 page = doc[0]
32 pix = page.get_pixmap()
33 assert pix.irect == page.rect.irect
34 pix = page.get_pixmap(alpha=True)
35 assert pix.alpha
36 assert pix.n == pix.colorspace.n + pix.alpha
37
38
39def test_pdfpixmap():

Callers

nothing calls this directly

Calls 1

get_pixmapMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…