footnote_separators property

DocumentBase.footnote_separators property

Provides access to the footnote/endnote separators defined in the document.

@property
def footnote_separators(self) -> aspose.words.notes.FootnoteSeparatorCollection:
    ...

Examples

Shows how to remove endnote separator.

doc = aw.Document(file_name=MY_DIR + 'Footnotes and endnotes.docx')
endnote_separator = doc.footnote_separators.get_by_footnote_separator_type(aw.notes.FootnoteSeparatorType.ENDNOTE_SEPARATOR)
# Remove endnote separator.
endnote_separator.first_paragraph.first_child.remove()

Shows how to manage footnote separator format.

doc = aw.Document(file_name=MY_DIR + 'Footnotes and endnotes.docx')
footnote_separator = doc.footnote_separators.get_by_footnote_separator_type(aw.notes.FootnoteSeparatorType.FOOTNOTE_SEPARATOR)
# Align footnote separator.
footnote_separator.first_paragraph.paragraph_format.alignment = aw.ParagraphAlignment.CENTER

See Also