Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
import
pymupdf
2
3
MEDIABOX = pymupdf.paper_rect(
"letter"
)
# output page format: Letter
4
GRIDSPACE = pymupdf.Rect(100, 100, 400, 400)
Callers
nothing calls this directly
Calls
11
begin_page
Method · 0.80
add_paragraph
Method · 0.80
set_bgcolor
Method · 0.80
set_pagebreak_after
Method · 0.80
set_align
Method · 0.80
set_fontsize
Method · 0.80
add_text
Method · 0.80
place
Method · 0.80
draw
Method · 0.80
end_page
Method · 0.80
close
Method · 0.45
Tested by
no test coverage detected