Need to identify when a page is ending in a word document and mark it with additional text like PAGEEND_<>.
I am able to iterate over paragraphs using the following code:
from docx.api import Document
from docx.enum.text import WD_BREAK
inputfile = 'test.docx'
document = Document(inputfile)
for paragraph in document.paragraphs:
# Write paragraph text into new document
# Write additional text as PARAEND_<<ParaNumber>>
How do I do the same thing for every page?