MCPcopy Index your code
hub / github.com/python-openxml/python-docx / _default_footer_xml

Method _default_footer_xml

src/docx/parts/hdrftr.py:28–33  ·  view source on GitHub ↗

Return bytes containing XML for a default footer part.

(cls)

Source from the content-addressed store, hash-verified

26
27 @classmethod
28 def _default_footer_xml(cls):
29 """Return bytes containing XML for a default footer part."""
30 path = os.path.join(os.path.split(__file__)[0], "..", "templates", "default-footer.xml")
31 with open(path, "rb") as f:
32 xml_bytes = f.read()
33 return xml_bytes
34
35
36class HeaderPart(StoryPart):

Callers 2

newMethod · 0.80

Calls 1

readMethod · 0.80