MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / simple-grid.py

File simple-grid.py

docs/samples/simple-grid.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import pymupdf
2
3MEDIABOX = pymupdf.paper_rect("letter") # output page format: Letter
4GRIDSPACE = pymupdf.Rect(100, 100, 400, 400)

Callers

nothing calls this directly

Calls 11

begin_pageMethod · 0.80
add_paragraphMethod · 0.80
set_bgcolorMethod · 0.80
set_pagebreak_afterMethod · 0.80
set_alignMethod · 0.80
set_fontsizeMethod · 0.80
add_textMethod · 0.80
placeMethod · 0.80
drawMethod · 0.80
end_pageMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected