简体   繁体   中英

OpenXML Word Document Split

I need help in splitting the word document using OpenXML. I am trying to split the large word document into multiple word documents with single page in each document. I have to split the word document using OpenXML SDK 2.5 (no third party dlls are allowed). Documents after splitting should contains all the styling and formatting present in original document.

Pages do not exist in the OpenXML format until they are rendered by a word processor.

The document may contain <w:lastRenderedPageBreak/> nodes, which hint at where page breaks occurred the last time the document was rendered though not necessarily where the page break will always occur .

If you have control over the construction of the documents, you can use inline notations to mark where you want to split. For instance, its a straightforward operation to locate and segment on heading levels to split a document of chapters into chapter documents.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM