diff --git a/Document-Processing/Word/Word-Library/NET/Conversion.md b/Document-Processing/Word/Word-Library/NET/Conversion.md index 6315df2fe..24580d319 100644 --- a/Document-Processing/Word/Word-Library/NET/Conversion.md +++ b/Document-Processing/Word/Word-Library/NET/Conversion.md @@ -1,6 +1,6 @@ --- title: Word document conversion in C# | DocIO | Syncfusion -description: This section illustrates how to convert a Word document into other supported file formats using Syncfusion® Word library (Essential® DocIO) +description: Learn how to convert a Word document into other supported file formats using Syncfusion® Word library (Essential® DocIO) platform: document-processing control: DocIO documentation: UG @@ -26,20 +26,21 @@ The Essential® DocIO converts documents from one format to anothe * Example: Image and PDF. -Essential® DocIO can convert various flow document as fixed document by using our layout engine. Following conversions are supported by Essential® DocIO. +Essential® DocIO can convert various flow document as fixed document by using our layout engine. The following conversions are supported by Essential® DocIO: -* Microsoft Word file format Conversions * Word document to PDF * Word document to Image +* HTML Conversions +* Markdown Conversions * RTF Conversions * Text Conversions -* HTML Conversions * Word document to ODT * Word document to EPUB +* Microsoft Word file format Conversions ## Converting Word document to PDF -Essential® DocIO allows you to convert a Word document into PDF with a few lines of code. For further information kindly refer [here](https://help.syncfusion.com/document-processing/word/conversions/word-to-pdf/net/word-to-pdf). +Essential® DocIO allows you to convert Word documents into PDF with just a few lines of code. For further information, kindly refer [here](https://help.syncfusion.com/document-processing/word/conversions/word-to-pdf/net/word-to-pdf). ### Customizing the Word document to PDF conversion @@ -51,29 +52,23 @@ Essential® DocIO allows you to customize the Word to PDF conversi * Allows to determine the quality of the JPEG images in the converted PDF * Allows to reduce the Main Memory usage in Word to PDF conversion by reusing the identical images. -For further information kindly refer [here](https://help.syncfusion.com/document-processing/word/conversions/word-to-pdf/net/word-to-pdf#customization-settings). +For further information, kindly refer [here](https://help.syncfusion.com/document-processing/word/conversions/word-to-pdf/net/word-to-pdf#customization-settings). ### Unsupported elements in Word to PDF conversion -Kindly refer the [here](https://help.syncfusion.com/document-processing/word/conversions/word-to-pdf/net/word-to-pdf#unsupported-elements-in-word-to-pdf-conversion) for list of Unsupported elements in Word to PDF conversion +Kindly refer [here](https://help.syncfusion.com/document-processing/word/conversions/word-to-pdf/net/word-to-pdf#unsupported-elements-in-word-to-pdf-conversion) for a list of unsupported elements in Word to PDF conversion. ## Rendering / Converting Word document to Image -Essential® DocIO supports to convert the Word document to images using [RenderAsImages](https://help.syncfusion.com/cr/document-processing/Syncfusion.DocIO.DLS.WordDocument.html#Syncfusion_DocIO_DLS_WordDocument_RenderAsImages_Syncfusion_DocIO_DLS_ImageType_) method. For further information kindly refer [here](https://help.syncfusion.com/document-processing/word/conversions/word-to-image/net/word-to-image). - - -## RTF conversion - -Essential® DocIO supports to convert the RTF document into Word document and vice versa. For further information kindly refer [here](https://help.syncfusion.com/document-processing/word/word-library/net/rtf). - +Essential® DocIO supports converting Word documents to images using the [RenderAsImages](https://help.syncfusion.com/cr/document-processing/Syncfusion.DocIO.DLS.WordDocument.html#Syncfusion_DocIO_DLS_WordDocument_RenderAsImages_Syncfusion_DocIO_DLS_ImageType_) method. For further information, kindly refer [here](https://help.syncfusion.com/document-processing/word/conversions/word-to-image/net/word-to-image). ## HTML conversion -Essential® DocIO supports converting the HTML file into Word document and vice versa. It supports only the HTML files that meet the validation either against XHTML 1.0 strict or XHTML 1.0 Transitional schema. +Essential® DocIO supports converting the HTML file into Word document and vice versa. It supports only HTML files that meet the validation against the either XHTML 1.0 strict or XHTML 1.0 Transitional schema. -For further information kindly refer [here](https://help.syncfusion.com/document-processing/word/word-library/net/html). +For further information, kindly refer [here](https://help.syncfusion.com/document-processing/word/conversions/html-conversions). ### Customizing the HTML to Word conversion @@ -84,7 +79,7 @@ You can customize the HTML to Word conversion with the following options: * Insert the HTML string at the specified position of the document body contents * Append HTML string to the specified paragraph -For further information kindly refer [here](https://help.syncfusion.com/document-processing/word/word-library/net/html#customization-settings). +For further information, kindly refer [here](https://help.syncfusion.com/document-processing/word/conversions/html-conversions#customizing-the-html-to-word-conversion). ### Customizing the Word to HTML conversion @@ -96,20 +91,38 @@ You can customize the Word to HTML conversion with the following options: * Specify the CSS style sheet type and its name N> -While exporting header and footer, DocIO exports the first section header content at the top of the HTML file and first section footer content at the end of the HTML file +While exporting the header and footer, DocIO exports the first section's header content at the top of the HTML file and first section's footer content at the end of the HTML file. -For further information kindly refer [here](https://help.syncfusion.com/document-processing/word/word-library/net/html#customization-settings). +For further information, kindly refer [here](https://help.syncfusion.com/document-processing/word/conversions/html-conversions#customizing-the-word-to-html-conversion). ### Supported Document elements -Kindly refer the [here](https://help.syncfusion.com/document-processing/word/word-library/net/html#supported-and-unsupported-items) for the document elements and attributes are supported by DocIO in Word to HTML and HTML to Word conversions. +Kindly refer [here](https://help.syncfusion.com/document-processing/word/conversions/html-conversions#supported-and-unsupported-items) for the document elements and attributes are supported by DocIO in Word to HTML and HTML to Word conversions. +## Markdown conversion -## Text file +Essential® DocIO supports converting Markdown files to Word documents and vice versa. -Essential® DocIO supports to convert the Word document into Text file and vice versa. For further information kindly refer [here](https://help.syncfusion.com/document-processing/word/word-library/net/text). +For further information, kindly refer to the following links: +* [Markdown to Word conversion](https://help.syncfusion.com/document-processing/word/conversions/markdown-to-word-conversion) +* [Word to Markdown conversion](https://help.syncfusion.com/document-processing/word/conversions/word-to-markdown-conversion) + +## RTF conversion + +Essential® DocIO supports converting RTF documents to Word documents and vice versa. For further information, kindly refer [here](https://help.syncfusion.com/document-processing/word/conversions/rtf-conversions). + +## Text conversion + +Essential® DocIO supports converting Word documents to text files and vice versa. For further information, kindly refer [here](https://help.syncfusion.com/document-processing/word/conversions/text-conversions). + +## Word to ODT + +Essential® DocIO supports converting Word documents to ODT. For further information, kindly refer [here](https://help.syncfusion.com/document-processing/word/conversions/word-to-odt-conversion). - ## Word to EPUB -Essential® DocIO supports to convert the Word document into EPUB v2.0. It only supports in Windows Forms, UWP, WPF, ASP.NET Web and MVC platforms. For further information kindly refer [here](https://help.syncfusion.com/document-processing/word/word-library/net/word-to-epub). +Essential® DocIO supports converting Word documents to EPUB v2.0. This feature is supported only on Windows Forms, UWP, WPF, ASP.NET Web, and MVC platforms. For further information, kindly refer [here](https://help.syncfusion.com/document-processing/word/conversions/word-to-epub-conversion). + +## Microsoft Word File Format Conversions + +Essential® DocIO supports converting Word documents between different Microsoft Word file formats, including DOCX, DOCM, DOTX, DOTM, WordML, DOC, and DOT. You can load a document in one Word format and save it in another supported Word format. For further information, kindly refer [here](https://help.syncfusion.com/document-processing/word/conversions/word-file-formats-conversions). diff --git a/Document-Processing/Word/Word-Library/NET/Support-File-Formats.md b/Document-Processing/Word/Word-Library/NET/Support-File-Formats.md index f104a80c9..efdc4ff51 100644 --- a/Document-Processing/Word/Word-Library/NET/Support-File-Formats.md +++ b/Document-Processing/Word/Word-Library/NET/Support-File-Formats.md @@ -8,7 +8,7 @@ documentation: UG # Supported File Formats in .NET Word Library -Syncfusion® .NET Word Library (DocIO) supports all major native file formats of Microsoft Word, such as [DOC](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-binary-97-2003-format), [DOCX](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-document-docx), [RTF](https://help.syncfusion.com/document-processing/word/word-library/net/rtf), [DOT](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-97-2003-template-dot), [DOTX](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-template-dotx), [DOCM](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#macros-docm-dotm), and more. It also supports conversion for major native file formats to [HTML](https://help.syncfusion.com/document-processing/word/word-library/net/html), [Markdown](https://help.syncfusion.com/document-processing/word/word-library/net/convert-word-document-to-markdown-in-csharp), [PDF](https://help.syncfusion.com/document-processing/word/conversions/word-to-pdf/net/word-to-pdf) and [image](https://help.syncfusion.com/document-processing/word/conversions/word-to-image/net/word-to-image). +Syncfusion® .NET Word Library (DocIO) supports all major native file formats of Microsoft Word, such as [DOC](https://help.syncfusion.com/document-processing/word/conversions/word-file-formats-conversions#word-binary-97-2003-format), [DOCX](https://help.syncfusion.com/document-processing/word/conversions/word-file-formats-conversions#word-document-docx), [RTF](https://help.syncfusion.com/document-processing/word/conversions/rtf-conversions), [DOT](https://help.syncfusion.com/document-processing/word/conversions/word-file-formats-conversions#word-97-2003-template-dot), [DOTX](https://help.syncfusion.com/document-processing/word/conversions/word-file-formats-conversions#word-template-dotx), [DOCM](https://help.syncfusion.com/document-processing/word/conversions/word-file-formats-conversions#macros-docm-dotm), and more. It also supports conversion for major native file formats to [HTML](https://help.syncfusion.com/document-processing/word/conversions/html-conversions), [Markdown](https://help.syncfusion.com/document-processing/word/conversions/word-to-markdown-conversion), [PDF](https://help.syncfusion.com/document-processing/word/conversions/word-to-pdf/net/word-to-pdf) and [image](https://help.syncfusion.com/document-processing/word/conversions/word-to-image/net/word-to-image). The following table describes the supported file formats and their conversions in DocIO. @@ -19,40 +19,40 @@ The following table describes the supported file formats and their conversions i -{{'[DOC](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-binary-97-2003-format)'| markdownify }} +{{'[DOC](https://help.syncfusion.com/document-processing/word/conversions/word-file-formats-conversions#word-binary-97-2003-format)'| markdownify }} -{{'[DOCX](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-document-docx)'| markdownify }} +{{'[DOCX](https://help.syncfusion.com/document-processing/word/conversions/word-file-formats-conversions#word-document-docx)'| markdownify }} -{{'[Word Processing XML (2007)](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-processing-xml-xml)'| markdownify }} +{{'[Word Processing XML (2007)](https://help.syncfusion.com/document-processing/word/conversions/word-file-formats-conversions#word-processing-xml-xml)'| markdownify }} -{{'[DOT](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-97-2003-template-dot)'| markdownify }} +{{'[DOT](https://help.syncfusion.com/document-processing/word/conversions/word-file-formats-conversions#word-97-2003-template-dot)'| markdownify }} -{{'[DOTX](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-template-dotx)'| markdownify }} +{{'[DOTX](https://help.syncfusion.com/document-processing/word/conversions/word-file-formats-conversions#word-template-dotx)'| markdownify }} -{{'[DOCM](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#macros-docm-dotm)'| markdownify }} +{{'[DOCM](https://help.syncfusion.com/document-processing/word/conversions/word-file-formats-conversions#macros-docm-dotm)'| markdownify }} -{{'[DOTM](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#macros-docm-dotm)'| markdownify }} +{{'[DOTM](https://help.syncfusion.com/document-processing/word/conversions/word-file-formats-conversions#macros-docm-dotm)'| markdownify }} -{{'[ODT](https://help.syncfusion.com/document-processing/word/word-library/net/word-to-odt)'| markdownify }} +{{'[ODT](https://help.syncfusion.com/document-processing/word/conversions/word-to-odt-conversion)'| markdownify }} -{{'[RTF](https://help.syncfusion.com/document-processing/word/word-library/net/rtf)'| markdownify }} +{{'[RTF](https://help.syncfusion.com/document-processing/word/conversions/rtf-conversions)'| markdownify }} -{{'[Text](https://help.syncfusion.com/document-processing/word/word-library/net/text)'| markdownify }} +{{'[Text](https://help.syncfusion.com/document-processing/word/conversions/text-conversions)'| markdownify }} -{{'[Markdown](https://help.syncfusion.com/document-processing/word/word-library/net/convert-word-document-to-markdown-in-csharp)'| markdownify }} +{{'[Markdown](https://help.syncfusion.com/document-processing/word/conversions/word-to-markdown-conversion)'| markdownify }} -{{'[HTML](https://help.syncfusion.com/document-processing/word/word-library/net/html)'| markdownify }} +{{'[HTML](https://help.syncfusion.com/document-processing/word/conversions/html-conversions)'| markdownify }} {{'[PDF](https://help.syncfusion.com/document-processing/word/conversions/word-to-pdf/net/word-to-pdf)'| markdownify }} @@ -62,7 +62,7 @@ The following table describes the supported file formats and their conversions i -{{'[DOC](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-binary-97-2003-format)'| markdownify }} +{{'[DOC](https://help.syncfusion.com/document-processing/word/conversions/word-file-formats-conversions#word-binary-97-2003-format)'| markdownify }} Yes Yes Yes @@ -79,7 +79,7 @@ The following table describes the supported file formats and their conversions i Yes -{{'[DOCX](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-document-docx)'| markdownify }} +{{'[DOCX](https://help.syncfusion.com/document-processing/word/conversions/word-file-formats-conversions#word-document-docx)'| markdownify }} Yes Yes Yes @@ -96,7 +96,7 @@ The following table describes the supported file formats and their conversions i Yes -{{'[Word Processing XML (2003)](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-processing-xml-xml)'| markdownify }} +{{'[Word Processing XML (2003)](https://help.syncfusion.com/document-processing/word/conversions/word-file-formats-conversions#word-processing-xml-xml)'| markdownify }} Yes Yes Yes @@ -113,7 +113,7 @@ The following table describes the supported file formats and their conversions i Yes -{{'[Word Processing XML (2007)](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-processing-xml-xml)'| markdownify }} +{{'[Word Processing XML (2007)](https://help.syncfusion.com/document-processing/word/conversions/word-file-formats-conversions#word-processing-xml-xml)'| markdownify }} Yes Yes Yes @@ -130,7 +130,7 @@ The following table describes the supported file formats and their conversions i Yes -{{'[DOT](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-97-2003-template-dot)'| markdownify }} +{{'[DOT](https://help.syncfusion.com/document-processing/word/conversions/word-file-formats-conversions#word-97-2003-template-dot)'| markdownify }} Yes Yes Yes @@ -147,7 +147,7 @@ The following table describes the supported file formats and their conversions i Yes -{{'[DOTX](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-template-dotx)'| markdownify }} +{{'[DOTX](https://help.syncfusion.com/document-processing/word/conversions/word-file-formats-conversions#word-template-dotx)'| markdownify }} Yes Yes Yes @@ -164,7 +164,7 @@ The following table describes the supported file formats and their conversions i Yes -{{'[DOCM](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#macros-docm-dotm)'| markdownify }} +{{'[DOCM](https://help.syncfusion.com/document-processing/word/conversions/word-file-formats-conversions#macros-docm-dotm)'| markdownify }} Yes Yes Yes @@ -181,7 +181,7 @@ The following table describes the supported file formats and their conversions i Yes -{{'[DOTM](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#macros-docm-dotm)'| markdownify }} +{{'[DOTM](https://help.syncfusion.com/document-processing/word/conversions/word-file-formats-conversions#macros-docm-dotm)'| markdownify }} Yes Yes Yes @@ -198,7 +198,7 @@ The following table describes the supported file formats and their conversions i Yes -{{'[RTF](https://help.syncfusion.com/document-processing/word/word-library/net/rtf)'| markdownify }} +{{'[RTF](https://help.syncfusion.com/document-processing/word/conversions/rtf-conversions)'| markdownify }} Yes Yes Yes @@ -215,7 +215,7 @@ The following table describes the supported file formats and their conversions i Yes -{{'[Text](https://help.syncfusion.com/document-processing/word/word-library/net/text)'| markdownify }} +{{'[Text](https://help.syncfusion.com/document-processing/word/conversions/text-conversions)'| markdownify }} Yes Yes Yes @@ -232,7 +232,7 @@ The following table describes the supported file formats and their conversions i Yes -{{'[Markdown](https://help.syncfusion.com/document-processing/word/word-library/net/convert-markdown-to-word-document-in-csharp)'| markdownify }} +{{'[Markdown](https://help.syncfusion.com/document-processing/word/conversions/markdown-to-word-conversion)'| markdownify }} Yes Yes Yes @@ -249,7 +249,7 @@ The following table describes the supported file formats and their conversions i Yes -{{'[HTML](https://help.syncfusion.com/document-processing/word/word-library/net/html)'| markdownify }} +{{'[HTML](https://help.syncfusion.com/document-processing/word/conversions/html-conversions)'| markdownify }} Yes Yes Yes diff --git a/Document-Processing/Word/Word-Library/NET/Working-with-Macros.md b/Document-Processing/Word/Word-Library/NET/Working-with-Macros.md index 32306904d..3f2722bd5 100644 --- a/Document-Processing/Word/Word-Library/NET/Working-with-Macros.md +++ b/Document-Processing/Word/Word-Library/NET/Working-with-Macros.md @@ -26,7 +26,7 @@ using (FileStream fileStream = new FileStream("Template.dotm", FileMode.Open, Fi using (WordDocument document = new WordDocument(fileStream, FormatType.Dotm)) { //Creates file stream. - using (MemoryStream stream = new MemoryStream();) + using (MemoryStream stream = new MemoryStream()) { //Saves the Word document to stream. document.Save(stream, FormatType.Word2013Docm);