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

Method footer

src/docx/oxml/section.py:197–207  ·  view source on GitHub ↗

Distance from bottom edge of page to bottom edge of the footer. This is the value of the `w:footer` attribute in the `w:pgMar` child element, as a |Length| object, or |None| if either the element or the attribute is not present.

(self)

Source from the content-addressed store, hash-verified

195
196 @property
197 def footer(self) -> Length | None:
198 """Distance from bottom edge of page to bottom edge of the footer.
199
200 This is the value of the `w:footer` attribute in the `w:pgMar` child element,
201 as a |Length| object, or |None| if either the element or the attribute is not
202 present.
203 """
204 pgMar = self.pgMar
205 if pgMar is None:
206 return None
207 return pgMar.footer
208
209 @footer.setter
210 def footer(self, value: int | Length | None):

Callers

nothing calls this directly

Calls 1

LengthClass · 0.90

Tested by

no test coverage detected