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

Function footer_story

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

Make the page footer

(text)

Source from the content-addressed store, hash-verified

73
74
75def footer_story(text):
76 """Make the page footer"""
77 footer = pymupdf.Story()
78 ftr_body = footer.body
79 ftr_body.add_paragraph().set_properties(
80 bgcolor="#eee",
81 align=pymupdf.TEXT_ALIGN_CENTER,
82 color="blue",
83 fontsize=10,
84 font="sans-serif",
85 ).add_text(text)
86 return footer
87
88
89def code_printer(outfile):

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…