Open-XML-SDK icon indicating copy to clipboard operation
Open-XML-SDK copied to clipboard

Documentation Request: Explain how to "Splitting up (shredding) a file into multiple files, and combining multiple files into a single file."

Open catmanjan opened this issue 1 year ago • 1 comments

Describe the API or scenario One of the first features listed in this repo is:

"Splitting up (shredding) a file into multiple files, and combining multiple files into a single file."

But I can't find any information on the internet on how to split a file into multiple files using this SDK.

Attempts Googled it

Related scenarios All these questions but no code answers:

https://stackoverflow.com/questions/43659785/openxml-word-document-split https://stackoverflow.com/questions/43659785/openxml-word-document-split https://stackoverflow.com/questions/4920532/how-to-split-a-word-document-by-section-using-c-sharp-and-the-open-xml-sdk

catmanjan avatar Jul 31 '24 06:07 catmanjan

@catmanjan I have no objection to add a set of tutorials and/or examples for the features listed on the repo's readme (if someone would do it...), but, if you are looking for a quick solution, you can check https://github.com/OpenXmlDev/Open-Xml-PowerTools. The class DocumentBuilder provides the requested feature for WordprocessingML (docx) document and PresentationBuilder for PresentationML (pptx) document. Their source files are in the folder OpenXmlPowerTools.

Hope this helps.

AlissaSabre avatar Aug 25 '24 01:08 AlissaSabre

Hi @catmanjan,

We're updating our existing documentation repo and moving the samples that exist in this repo to our documentation repo OfficeDev/open-xml-docs, so the best place to request new samples/documentation is on the OfficeDev/open-xml-docs issues page

mikeebowen avatar Dec 06 '24 19:12 mikeebowen

Closing. Please see Mike's comments.

AlfredHellstern avatar Dec 10 '24 19:12 AlfredHellstern