Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 30 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Split Word documents in C#

This repository contains examples that illustrates how to split Word document programmatically in C#. The Syncfusion® [.NET Word library](https://www.syncfusion.com/document-processing/word-framework/net/word-library?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples) (DocIO) split Word document with just few lines of code and also it does not require Microsoft Word application to be installed in the machine.
This repository contains examples that illustrates how to split Word document programmatically in C#. The [.NET Word Library](https://www.syncfusion.com/document-sdk/net-word-library) (DocIO) split Word document with just few lines of code and also it does not require Microsoft Word application to be installed in the machine.

<p align="center">
<img src="Images/Split-Word-document.png" alt="Split Word document in C#"/>
Expand All @@ -12,10 +12,26 @@ This repository contains examples that illustrates how to split Word document pr
- [Split by Bookmarks](Split-Word-document-by-bookmarks/) - Split the Word document based on bookmarks.
- [Split by Placeholder text](Split-Word-document-by-placeholders/) - Split the Word document based on placeholder text.

## Syncfusion&reg; .NET Word Library
The Syncfusion&reg; DocIO is a [.NET Word library](https://www.syncfusion.com/document-processing/word-framework/net/word-library?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples) allows you to add advanced Word document processing functionalities to any .NET application and does not require Microsoft Word application to be installed in the machine. It is a non-UI component that provides a full-fledged document instance model similar to the Microsoft Office COM libraries to iterate with the document elements explicitly and perform necessary manipulation.
## .NET Word Library

Take a moment to peruse the [documentation](https://help.syncfusion.com/document-processing/word/word-library/net/overview?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), where you can find basic Word document processing options along with the features like [mail merge](https://help.syncfusion.com/document-processing/word/word-library/net/working-with-mail-merge?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), [merge](https://help.syncfusion.com/document-processing/word/word-library/net/word-document/merging-word-documents?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), [split](https://help.syncfusion.com/document-processing/word/word-library/net/word-document/split-word-documents?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples) and [compare documents](https://help.syncfusion.com/document-processing/word/word-library/net/word-document/compare-word-documents?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), [find and replace](https://help.syncfusion.com/document-processing/word/word-library/net/working-with-find-and-replace?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples) text in the Word document, [protect](https://help.syncfusion.com/document-processing/word/word-library/net/working-with-security?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples) the Word documents, and most importantly, the [PDF](https://help.syncfusion.com/document-processing/word/conversions/word-to-pdf/overview?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples) and [Image](https://help.syncfusion.com/document-processing/word/conversions/word-to-image/overview?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples) conversions with code examples.
The Syncfusion&reg; DocIO is a [.NET Word Library](https://www.syncfusion.com/document-sdk/net-word-library) allows you to add advanced Word document processing functionalities to any .NET application and does not require Microsoft Word application to be installed in the machine. It is a non-UI component that provides a full-fledged document instance model similar to the Microsoft Office COM libraries to iterate with the document elements explicitly and perform necessary manipulation.

* Support to [create Word document](https://www.syncfusion.com/document-sdk/net-word-library/create-word-documents) from scratch.
* Support to open (read), modify and save existing Word documents.
* Advanced [Mail merge](https://www.syncfusion.com/document-sdk/net-word-library/mail-merge) support with different data sources.
* Ability to create or edit Word 97-2003 and later version documents (DOCX), and convert them to commonly used file formats such as [RTF](https://help.syncfusion.com/document-processing/word/conversions/rtf-conversions), [WordML](https://help.syncfusion.com/document-processing/word/conversions/word-file-formats-conversions#word-processing-xml-xml), [TXT](https://www.syncfusion.com/document-sdk/net-word-library/text-conversions), [HTML](https://www.syncfusion.com/document-sdk/net-word-library/html-conversions) and vice versa.
* Ability to export a Word document as an [Image](https://www.syncfusion.com/document-sdk/net-word-library/word-to-image-conversion) and [PDF](https://www.syncfusion.com/document-sdk/net-word-library/word-to-pdf-conversion)
* Ability to [merge](https://www.syncfusion.com/document-sdk/net-word-library/merge-word-documents) and [split](https://www.syncfusion.com/document-sdk/net-word-library/split-word-documents) Word documents.
* Support to [compare](https://www.syncfusion.com/document-sdk/net-word-library/compare-word-documents) two DOCX format documents.
* Ability to create and manipulate [charts](https://help.syncfusion.com/document-processing/word/word-library/net/working-with-charts), [Shapes](https://help.syncfusion.com/document-processing/word/word-library/net/working-with-shapes), and [Group shape](https://help.syncfusion.com/document-processing/word/word-library/net/working-with-shapes#grouping-shapes) in DOCX and WordML format documents.
* Ability to read and write [Built-In and Custom Document Properties](https://help.syncfusion.com/document-processing/word/word-library/net/working-with-word-document#working-with-word-document-properties).
* Ability to [find and replace](https://www.syncfusion.com/document-sdk/net-word-library/find-and-replace) text with its original formatting.
* Ability to insert [Bookmarks](https://www.syncfusion.com/document-sdk/net-word-library/bookmark-in-word-document) and navigate corresponding bookmarks to insert, replace, and delete content.
* Support to insert and edit the [form fields](https://www.syncfusion.com/document-sdk/net-word-library/form-filling-in-word-document).
* Support to protect the document to [restrict access](https://www.syncfusion.com/document-sdk/net-word-library/protect-word-documents) to the elements present within the document.
* Ability to [encrypt and decrypt](https://help.syncfusion.com/document-processing/word/word-library/net/working-with-security) Word documents.
* Support to [insert and extract OLE](https://help.syncfusion.com/document-processing/word/word-library/net/working-with-paragraph#working-with-ole-objects) objects.
* Support to run the DocIO applications in multi-thread and its thread safe.

Compatible Microsoft Word Versions
----------------------------------
Expand All @@ -31,8 +47,8 @@ Compatible Microsoft Word Versions
Supported File Formats
----------------------

* Creates, reads, and edits popular text file formats like [DOC](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#doc-to-docx-and-docx-to-doc?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), DOT, [DOCM](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#macros?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), DOTM, [DOCX](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#doc-to-docx-and-docx-to-doc?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), [DOTX](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#templates?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), [HTML](https://help.syncfusion.com/document-processing/word/word-library/net/html?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), [RTF](https://help.syncfusion.com/document-processing/word/word-library/net/rtf?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), [TXT](https://help.syncfusion.com/document-processing/word/word-library/net/text?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), and [XML (WordML)](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-processing-xml-xml?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples).
* Converts Word documents also to [PDF](https://help.syncfusion.com/document-processing/word/conversions/word-to-pdf/overview?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), [Image](https://help.syncfusion.com/document-processing/word/conversions/word-to-image/overview?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), and [ODT](https://help.syncfusion.com/document-processing/word/word-library/net/word-to-odt?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples) files.
* Creates, reads, and edits popular text file formats like [DOC](https://help.syncfusion.com/document-processing/word/conversions/word-file-formats-conversions#doc-to-docx-and-docx-to-doc), DOT, [DOCM](https://help.syncfusion.com/document-processing/word/conversions/word-file-formats-conversions#macros-docm-dotm), DOTM, [DOCX](https://help.syncfusion.com/document-processing/word/conversions/word-file-formats-conversions#word-document-docx), [DOTX](https://help.syncfusion.com/document-processing/word/conversions/word-file-formats-conversions#word-template-dotx), [HTML](https://www.syncfusion.com/document-sdk/net-word-library/html-conversions), [RTF](https://help.syncfusion.com/document-processing/word/conversions/rtf-conversions), [TXT](https://www.syncfusion.com/document-sdk/net-word-library/text-conversions), [Markdown](https://help.syncfusion.com/document-processing/word/conversions/markdown-to-word-conversion) and [XML (WordML)](https://help.syncfusion.com/document-processing/word/conversions/word-file-formats-conversions#word-processing-xml-xml).
* Converts Word documents also to [PDF](https://www.syncfusion.com/document-sdk/net-word-library/word-to-pdf-conversionhub-docio-examples), [Image](https://www.syncfusion.com/document-sdk/net-word-library/word-to-image-conversion), and [ODT](https://help.syncfusion.com/document-processing/word/conversions/word-to-odt-conversion) files.

## How to run the examples
- Download this project to a location in your disk.
Expand All @@ -42,10 +58,14 @@ Supported File Formats

## Resources

- **Product page:** [Syncfusion&reg; Word Framework](https://www.syncfusion.com/document-processing/word-framework/net?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples)
- **Documentation:** [Split Word document using Syncfusion&reg; Word library](https://help.syncfusion.com/document-processing/word/word-library/net/word-document/split-word-documents?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples)
- **GitHub Examples:** [Syncfusion&reg; Word library examples](https://github.com/SyncfusionExamples/DocIO-Examples?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples)
- **Online demo:** [Syncfusion&reg; Word library - Online demos](https://ej2aspnetcore.azurewebsites.net/aspnetcore/word/splitbysection#/material3?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples)
* **Product page:** [Syncfusion&reg; Word Framework](https://www.syncfusion.com/document-sdk/net-word-library)
* **Documentation:** [Split Word document using Syncfusion&reg; Word Library](https://help.syncfusion.com/document-processing/word/word-library/net/word-document/split-word-documents)
* **Online demo:** [Syncfusion&reg; Word Library - Online demos](https://document.syncfusion.com/demos/word/salesinvoice#/bootstrap5)
* **GitHub Examples:** [Syncfusion&reg; Word Library examples](https://github.com/SyncfusionExamples/DocIO-Examples)
* **Blog:** [Syncfusion&reg; Word Library - Blog](https://www.syncfusion.com/blogs/category/docio?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples)
* **Knowledge Base:** [Syncfusion&reg; Word Library - Knowledge Base](https://www.syncfusion.com/kb/aspnetcore/docio?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples)
* **Ebooks:** [Syncfusion&reg; Word Library - Ebooks](https://www.syncfusion.com/succinctly-free-ebooks?utm_source=nuget&utm_medium=listing&utm_campaign=aspnetcore-docio-nuget)
* **FAQ:** [Syncfusion&reg; Word Library - FAQ](https://www.syncfusion.com/faq/?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples)

## Support and feedback
For any other queries, reach our [Syncfusion&reg; support team](https://support.syncfusion.com/?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples) or post the queries through the [community forums](https://www.syncfusion.com/forums?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples).
Expand Down