'Search string and insert page break DOCX
I need to search for strings in a DOCX document (with grep for example) and after finding it, insert a page break right after.
will it be possible?
Solution 1:[1]
With docx, you can get the document texts into string.
Iterate over strings, then search the term you want for the index.
Insert the page break character (may be 0xC).
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | PySoL |
