I have a multi-page Docx document and I need to write a code that splits it by pages, precisely as it appears when the document is opened in "Word", (in the same way that saving in PDF format divides the pages, although I must keep the documents in Docx format and remain the same as the pages in the original document, so Converting PDF files back to DOCX does not give a good enough solution) and finally save each page as a separate Docx file, so if I need the "k" page I can access the "k" document that contains the exact "k" page of the original document. I basically work with python but the problem has been so challenging that I am willing to hear any idea, including in other languages.
As mentioned, I tried conversion to PDF, split and conversion back to Docx but the conversions affected the content of many pages since these are documents that contain, in addition to plain text also many tables in a variety of designs.
I also found a code in the VBA that was supposed to provide a solution to the problem, but in practice the split it performed was not consistent enough and in some documents it created blank pages and also occasionally split a single page into several pages.