This repository provides an example of how to convert a Word document to a text file using the Syncfusion .NET Word Library (DocIO). It also demonstrates converting a text file back to a Word document and extracting plain text from a Word document.
This sample shows how you can easily switch between Word and text formats using the Syncfusion DocIO library. These conversions are essential for scenarios such as storing content in a lightweight text format for efficient processing or extracting text for indexing and search operations. Using the Syncfusion DocIO library, you can:
- Convert a Word document (.docx) to a plain text file (.txt).
- Convert a text file (.txt) back to a Word document (.docx).
- Extract plain text from a Word document and save it into a new Word file
- Open the ASP.NET Core application where the Syncfusion DocIO package is installed.
- Run the application and click the following buttons:
- Word to Text: Converts a Word document to a plain text file.
- Text to Word: Converts a text file back to a Word document.
- Extract Plain Text: Extracts text from a Word document and saves it into a new Word document.