Skip to content

How can I find and replace a word in footer of word document using "Python docx"? #618

@eranjan90

Description

@eranjan90

It is very easy to create a footer by python-docx. But when I want to find and replace word in footer, I am unable to do that.
For example: I have a paragraph in footer i.e "Page 1 of 10". I want to find word "of" and replace it with "to". So my result will be "Page 1 to 10". How can I do that.
footer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions