MCPcopy Index your code
hub / github.com/pymupdf/PyMuPDF / test_layout

Function test_layout

tests/test_nonpdf.py:31–35  ·  view source on GitHub ↗

Memorize a page location, re-layout with ISO-A4, assert pre-determined location.

()

Source from the content-addressed store, hash-verified

29 i += 1
30
31def test_layout():
32 """Memorize a page location, re-layout with ISO-A4, assert pre-determined location."""
33 loc = doc.make_bookmark((5, 11))
34 doc.layout(pymupdf.Rect(pymupdf.paper_rect("a4")))
35 assert doc.find_bookmark(loc) == (5, 6)

Callers

nothing calls this directly

Calls 3

make_bookmarkMethod · 0.80
layoutMethod · 0.80
find_bookmarkMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…