Programmatically headless search and replace
Posted: Thu Mar 15, 2018 2:17 pm
Hello!
I need to use find and replace via headless, but I have not found a way to do that.
Currently I uncompressed a .docx file and try to locate and replace it directly in the xml file, but often there are tags being opened and closed in the middle of my search string.
I have a template .docx file, and I need to replace certain strings with others, for example a lease, where I need to put name, address and other information via programming.
How i can do it?
I need to use find and replace via headless, but I have not found a way to do that.
Currently I uncompressed a .docx file and try to locate and replace it directly in the xml file, but often there are tags being opened and closed in the middle of my search string.
I have a template .docx file, and I need to replace certain strings with others, for example a lease, where I need to put name, address and other information via programming.
How i can do it?