I am trying to insert a paragraph before TOC using python-docx. Is there a way in which I can add the paragraph before the TOC.
This is what currently I have
I want something like this
I am trying to insert a paragraph before TOC using python-docx. Is there a way in which I can add the paragraph before the TOC.
This is what currently I have
I want something like this
Have you tried this?:
paragraph = document.paragraphs[0].insert_paragraph_before(
"New paragraph here"
)