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

Function header_story

docs/samples/code-printer.py:60–72  ·  view source on GitHub ↗

Make the page header

(text)

Source from the content-addressed store, hash-verified

58
59
60def header_story(text):
61 """Make the page header"""
62 header = pymupdf.Story()
63 hdr_body = header.body
64 hdr_body.add_paragraph().set_properties(
65 align=pymupdf.TEXT_ALIGN_CENTER,
66 bgcolor="#eee",
67 font="sans-serif",
68 bold=True,
69 fontsize=12,
70 color="green",
71 ).add_text(text)
72 return header
73
74
75def footer_story(text):

Callers 2

code_printerFunction · 0.85
code-printer.pyFile · 0.85

Calls 3

add_textMethod · 0.80
set_propertiesMethod · 0.80
add_paragraphMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…