According to the documentation here , the client uses LastRenderedPageBreak identify pages the last time they were saved. and xml for it:
<w:lastRenderedPageBreak/>
I think you can use this to check and paginate pages, if only the document you are working with is automatically generated and has no LastRenderedPageBreak s.
Also, this approach will only work for documents with single-column layouts. But with docs with multi-column layouts looks like a problem.
source share