update_actual_reference_marks method

update_actual_reference_marks()

Updates the Footnote.actual_reference_mark property of all footnotes and endnotes in the document.

def update_actual_reference_marks(self):
    ...

Remarks

Updating fields (Document.update_fields()) may be necessary to get the correct result.

Examples

Shows how to get actual footnote reference mark.

doc = aw.Document(file_name=MY_DIR + "Footnotes and endnotes.docx")
footnote = doc.get_child(aw.NodeType.FOOTNOTE, 1, True).as_footnote()
doc.update_fields()
doc.update_actual_reference_marks()
self.assertEqual("1", footnote.actual_reference_mark)

See Also