From e6893341058d94ea1eafda5a8536792eab4a8536 Mon Sep 17 00:00:00 2001 From: Karan-SF4772 Date: Mon, 6 Jul 2026 11:11:16 +0530 Subject: [PATCH] Update Code snippet --- .../.NET/Replace-misspelled-word/README.md | 2 +- .../.NET/Create-Word-document/README.md | 2 +- .../.NET/Convert-HTML-to-Word/README.md | 2 +- .../.NET/Convert-Word-to-HTML/README.md | 2 +- .../.NET/Create-ink-sample/README.md | 2 +- .../.NET/Edit-ink-sample/README.md | 2 +- .../README.md | 2 +- .../.NET/Convert-Markdown-to-Word/README.md | 2 +- .../README.md | 2 +- .../README.md | 2 +- .../.NET/Add-table-of-contents/README.md | 2 +- .../.NET/Apply-table-formatting/README.md | 2 +- .../.NET/Convert-Word-to-text-file/README.md | 2 +- .../Merge-documents-in-new-page/README.md | 2 +- .../.NET/Split-by-bookmark/README.md | 2 +- .../.NET/Split-by-heading/README.md | 2 +- .../.NET/Split-by-placeholder-text/README.md | 2 +- .../.NET/Split-by-section/README.md | 2 +- .../First-page-of-Word-to-image/README.md | 2 +- .../.NET/Convert-Word-to-Markdown/README.md | 2 +- .../Convert-Word-document-to-PDF/Program.cs | 32 +++++-------------- .../Convert-Word-document-to-PDF/README.md | 2 +- .../README.md | 2 +- .../.NET/PDF-conformance-level/README.md | 2 +- 24 files changed, 31 insertions(+), 47 deletions(-) diff --git a/Find-and-Replace/Replace-misspelled-word/.NET/Replace-misspelled-word/README.md b/Find-and-Replace/Replace-misspelled-word/.NET/Replace-misspelled-word/README.md index af9b22dee..b15db792c 100644 --- a/Find-and-Replace/Replace-misspelled-word/.NET/Replace-misspelled-word/README.md +++ b/Find-and-Replace/Replace-misspelled-word/.NET/Replace-misspelled-word/README.md @@ -1,6 +1,6 @@ # Find and replace text in Word document using C# -The Syncfusion® [.NET Word Library](https://www.syncfusion.com/document-processing/word-framework/net/word-library) (DocIO) enables you to create, read, and edit Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **find and replace text in a Word document** using C#. +The [.NET Word Library](https://www.syncfusion.com/document-sdk/net-word-library) (DocIO) enables you to create, read, and edit Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **find and replace text in a Word document** using C#. ## Steps to find and replace text programmatically diff --git a/Getting-Started/.NET/Create-Word-document/README.md b/Getting-Started/.NET/Create-Word-document/README.md index b5f26a443..fd0eeb3f2 100644 --- a/Getting-Started/.NET/Create-Word-document/README.md +++ b/Getting-Started/.NET/Create-Word-document/README.md @@ -1,6 +1,6 @@ # Create Word document using C# -The Syncfusion® [.NET Word Library](https://www.syncfusion.com/document-processing/word-framework/net/word-library) (DocIO) empowers you to create, read, and edit Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **create Word document** using C#. +The [.NET Word Library](https://www.syncfusion.com/document-sdk/net-word-library) (DocIO) empowers you to create, read, and edit Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **create Word document** using C#. ## Steps to create Word document programmatically diff --git a/HTML-conversions/Convert-HTML-to-Word/.NET/Convert-HTML-to-Word/README.md b/HTML-conversions/Convert-HTML-to-Word/.NET/Convert-HTML-to-Word/README.md index ea1115b34..e0af6762d 100644 --- a/HTML-conversions/Convert-HTML-to-Word/.NET/Convert-HTML-to-Word/README.md +++ b/HTML-conversions/Convert-HTML-to-Word/.NET/Convert-HTML-to-Word/README.md @@ -1,6 +1,6 @@ # Convert HTML to Word document using C# -The Syncfusion® [.NET Word Library](https://www.syncfusion.com/document-processing/word-framework/net/word-library) (DocIO) enables you to create, read, edit, and convert Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **convert HTML to a Word document** using C#. +The [.NET Word Library](https://www.syncfusion.com/document-sdk/net-word-library) (DocIO) enables you to create, read, edit, and convert Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **convert HTML to a Word document** using C#. ## Steps to convert HTML to Word programmatically diff --git a/HTML-conversions/Convert-Word-to-HTML/.NET/Convert-Word-to-HTML/README.md b/HTML-conversions/Convert-Word-to-HTML/.NET/Convert-Word-to-HTML/README.md index 472c93c86..6fa116d38 100644 --- a/HTML-conversions/Convert-Word-to-HTML/.NET/Convert-Word-to-HTML/README.md +++ b/HTML-conversions/Convert-Word-to-HTML/.NET/Convert-Word-to-HTML/README.md @@ -1,6 +1,6 @@ # Convert Word document to HTML using C# -The Syncfusion® [.NET Word Library](https://www.syncfusion.com/document-processing/word-framework/net/word-library) (DocIO) enables you to create, read, edit, and convert Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **convert a Word document to HTML** using C#. +The [.NET Word Library](https://www.syncfusion.com/document-sdk/net-word-library) (DocIO) enables you to create, read, edit, and convert Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **convert a Word document to HTML** using C#. ## Steps to convert Word to HTML programmatically diff --git a/Ink/Create-ink-sample/.NET/Create-ink-sample/README.md b/Ink/Create-ink-sample/.NET/Create-ink-sample/README.md index 0136a2938..6dbc73357 100644 --- a/Ink/Create-ink-sample/.NET/Create-ink-sample/README.md +++ b/Ink/Create-ink-sample/.NET/Create-ink-sample/README.md @@ -1,6 +1,6 @@ # Create Ink in a Word document using C# -The Syncfusion® [.NET Word Library](https://www.syncfusion.com/document-processing/word-framework/net/word-library) (DocIO) empowers you to create, read, and edit Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **create Ink elements in a Word document** using C#. +The [.NET Word Library](https://www.syncfusion.com/document-sdk/net-word-library) (DocIO) empowers you to create, read, and edit Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **create Ink elements in a Word document** using C#. ## Steps to create Ink elements in a Word document programmatically diff --git a/Ink/Edit-ink-sample/.NET/Edit-ink-sample/README.md b/Ink/Edit-ink-sample/.NET/Edit-ink-sample/README.md index 163b8cf0d..6ec561da0 100644 --- a/Ink/Edit-ink-sample/.NET/Edit-ink-sample/README.md +++ b/Ink/Edit-ink-sample/.NET/Edit-ink-sample/README.md @@ -1,6 +1,6 @@ # Edit Ink in a Word document using C# -The Syncfusion® [.NET Word Library](https://www.syncfusion.com/document-processing/word-framework/net/word-library) (DocIO) empowers you to create, read, and edit Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **edit Ink elements in a Word document** using C#. +The [.NET Word Library](https://www.syncfusion.com/document-sdk/net-word-library) (DocIO) empowers you to create, read, and edit Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **edit Ink elements in a Word document** using C#. ## Steps to Edit Ink elements in a Word document programmatically diff --git a/Mail-Merge/Mail-merge-with-implicit-relational-data/.NET/Mail-merge-with-implicit-relational-data/README.md b/Mail-Merge/Mail-merge-with-implicit-relational-data/.NET/Mail-merge-with-implicit-relational-data/README.md index 1385acb8b..7a5582f32 100644 --- a/Mail-Merge/Mail-merge-with-implicit-relational-data/.NET/Mail-merge-with-implicit-relational-data/README.md +++ b/Mail-Merge/Mail-merge-with-implicit-relational-data/.NET/Mail-merge-with-implicit-relational-data/README.md @@ -1,6 +1,6 @@ # Mail merge in a Word document using C# -The Syncfusion® [.NET Word Library](https://www.syncfusion.com/document-processing/word-framework/net/word-library) (DocIO) enables you to create, read, and edit Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **perform mail merge operations in a Word document** using C#. +The [.NET Word Library](https://www.syncfusion.com/document-sdk/net-word-library) (DocIO) enables you to create, read, and edit Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **perform mail merge operations in a Word document** using C#. ## Steps to perform mail merge programmatically diff --git a/Markdown-to-Word-conversion/Convert-Markdown-to-Word/.NET/Convert-Markdown-to-Word/README.md b/Markdown-to-Word-conversion/Convert-Markdown-to-Word/.NET/Convert-Markdown-to-Word/README.md index 2658e1cfd..d6fb3d870 100644 --- a/Markdown-to-Word-conversion/Convert-Markdown-to-Word/.NET/Convert-Markdown-to-Word/README.md +++ b/Markdown-to-Word-conversion/Convert-Markdown-to-Word/.NET/Convert-Markdown-to-Word/README.md @@ -1,6 +1,6 @@ # Convert Markdown to Word document using C# -The Syncfusion® [.NET Word Library](https://www.syncfusion.com/document-processing/word-framework/net/word-library) (DocIO) enables you to create, read, edit, and convert Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **convert Markdown to a Word document** using C#. +The [.NET Word Library](https://www.syncfusion.com/document-sdk/net-word-library) (DocIO) enables you to create, read, edit, and convert Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **convert Markdown to a Word document** using C#. ## Steps to convert Markdown to Word programmatically diff --git a/Security/Encrypt-Word-document-with-password/.NET/Encrypt-Word-document-with-password/README.md b/Security/Encrypt-Word-document-with-password/.NET/Encrypt-Word-document-with-password/README.md index 878e2081c..5062e84d2 100644 --- a/Security/Encrypt-Word-document-with-password/.NET/Encrypt-Word-document-with-password/README.md +++ b/Security/Encrypt-Word-document-with-password/.NET/Encrypt-Word-document-with-password/README.md @@ -1,6 +1,6 @@ # Encrypt Word document using C# -The Syncfusion® [.NET Word Library](https://www.syncfusion.com/document-processing/word-framework/net/word-library) (DocIO) enables you to create, read, and edit Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **encrypt Word documents** using C#. +The [.NET Word Library](https://www.syncfusion.com/document-sdk/net-word-library) (DocIO) enables you to create, read, and edit Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **encrypt Word documents** using C#. ## Steps to encrypt a Word document programmatically diff --git a/Security/Remove-encryption-from-Word-document/.NET/Remove-encryption-from-Word-document/README.md b/Security/Remove-encryption-from-Word-document/.NET/Remove-encryption-from-Word-document/README.md index 94d77840f..db227b117 100644 --- a/Security/Remove-encryption-from-Word-document/.NET/Remove-encryption-from-Word-document/README.md +++ b/Security/Remove-encryption-from-Word-document/.NET/Remove-encryption-from-Word-document/README.md @@ -1,6 +1,6 @@ # Decrypt Word document using C# -The Syncfusion® [.NET Word Library](https://www.syncfusion.com/document-processing/word-framework/net/word-library) (DocIO) enables you to create, read, and edit Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **decrypt Word documents** using C#. +The [.NET Word Library](https://www.syncfusion.com/document-sdk/net-word-library) (DocIO) enables you to create, read, and edit Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **decrypt Word documents** using C#. ## Steps to decrypt a Word document programmatically diff --git a/Table-Of-Contents/Add-table-of-contents/.NET/Add-table-of-contents/README.md b/Table-Of-Contents/Add-table-of-contents/.NET/Add-table-of-contents/README.md index 875152c4c..9157c89a5 100644 --- a/Table-Of-Contents/Add-table-of-contents/.NET/Add-table-of-contents/README.md +++ b/Table-Of-Contents/Add-table-of-contents/.NET/Add-table-of-contents/README.md @@ -1,6 +1,6 @@ # Add and update Table of Contents in Word document using C# -The Syncfusion® [.NET Word Library](https://www.syncfusion.com/document-processing/word-framework/net/word-library) (DocIO) enables you to create, read, and edit Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **add and update a Table of Contents (TOC) in a Word document** using C#. +The [.NET Word Library](https://www.syncfusion.com/document-sdk/net-word-library) (DocIO) enables you to create, read, and edit Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **add and update a Table of Contents (TOC) in a Word document** using C#. ## Steps to add and update Table of Contents (TOC) programmatically diff --git a/Tables/Apply-table-formatting/.NET/Apply-table-formatting/README.md b/Tables/Apply-table-formatting/.NET/Apply-table-formatting/README.md index 1e172e05a..1ed72f6e7 100644 --- a/Tables/Apply-table-formatting/.NET/Apply-table-formatting/README.md +++ b/Tables/Apply-table-formatting/.NET/Apply-table-formatting/README.md @@ -1,6 +1,6 @@ # Format table in a Word document using C# -The Syncfusion® [.NET Word Library](https://www.syncfusion.com/document-processing/word-framework/net/word-library) (DocIO) enables you to create, read, and edit Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **format tables in a Word document** using C#. +The [.NET Word Library](https://www.syncfusion.com/document-sdk/net-word-library) (DocIO) enables you to create, read, and edit Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **format tables in a Word document** using C#. ## Steps to format a table programmatically diff --git a/Text-file-conversion/Convert-Word-to-text-file/.NET/Convert-Word-to-text-file/README.md b/Text-file-conversion/Convert-Word-to-text-file/.NET/Convert-Word-to-text-file/README.md index ef40998cc..83fa94c60 100644 --- a/Text-file-conversion/Convert-Word-to-text-file/.NET/Convert-Word-to-text-file/README.md +++ b/Text-file-conversion/Convert-Word-to-text-file/.NET/Convert-Word-to-text-file/README.md @@ -1,6 +1,6 @@ # Convert Word document to Text using C# -The Syncfusion® [.NET Word Library](https://www.syncfusion.com/document-processing/word-framework/net/word-library) (DocIO) enables you to create, read, edit, and convert Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **convert a Word document to Text** using C#. +The [.NET Word Library](https://www.syncfusion.com/document-sdk/net-word-library) (DocIO) enables you to create, read, edit, and convert Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **convert a Word document to Text** using C#. ## Steps to convert Word to Text programmatically diff --git a/Word-document/Merge-documents-in-new-page/.NET/Merge-documents-in-new-page/README.md b/Word-document/Merge-documents-in-new-page/.NET/Merge-documents-in-new-page/README.md index 97f351f15..cbd184dfb 100644 --- a/Word-document/Merge-documents-in-new-page/.NET/Merge-documents-in-new-page/README.md +++ b/Word-document/Merge-documents-in-new-page/.NET/Merge-documents-in-new-page/README.md @@ -1,6 +1,6 @@ # Merge Word documents using C# -The Syncfusion® [.NET Word Library](https://www.syncfusion.com/document-processing/word-framework/net/word-library) (DocIO) enables you to create, read, and edit Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **merge Word documents** using C#. +The [.NET Word Library](https://www.syncfusion.com/document-sdk/net-word-library) (DocIO) enables you to create, read, and edit Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **merge Word documents** using C#. ## Steps to merge Word documents programmatically diff --git a/Word-document/Split-by-bookmark/.NET/Split-by-bookmark/README.md b/Word-document/Split-by-bookmark/.NET/Split-by-bookmark/README.md index af0572b09..c67bf0216 100644 --- a/Word-document/Split-by-bookmark/.NET/Split-by-bookmark/README.md +++ b/Word-document/Split-by-bookmark/.NET/Split-by-bookmark/README.md @@ -1,6 +1,6 @@ # Split Word document by Bookmarks using C# -The Syncfusion® [.NET Word Library](https://www.syncfusion.com/document-processing/word-framework/net/word-library) (DocIO) empowers you to create, read, and edit Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **split a Word document by bookmarks** using C#. +The [.NET Word Library](https://www.syncfusion.com/document-sdk/net-word-library) (DocIO) empowers you to create, read, and edit Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **split a Word document by bookmarks** using C#. ## Steps to split Word document by bookmarks programmatically diff --git a/Word-document/Split-by-heading/.NET/Split-by-heading/README.md b/Word-document/Split-by-heading/.NET/Split-by-heading/README.md index 4174a100f..48979f0c0 100644 --- a/Word-document/Split-by-heading/.NET/Split-by-heading/README.md +++ b/Word-document/Split-by-heading/.NET/Split-by-heading/README.md @@ -1,6 +1,6 @@ # Split Word document by Headings using C# -The Syncfusion® [.NET Word Library](https://www.syncfusion.com/document-processing/word-framework/net/word-library) (DocIO) enables you to create, read, and edit Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **split a Word document by headings** using C#. +The [.NET Word Library](https://www.syncfusion.com/document-sdk/net-word-library) (DocIO) enables you to create, read, and edit Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **split a Word document by headings** using C#. ## Steps to split Word document by headings programmatically diff --git a/Word-document/Split-by-placeholder-text/.NET/Split-by-placeholder-text/README.md b/Word-document/Split-by-placeholder-text/.NET/Split-by-placeholder-text/README.md index dbef6ee23..59b93e45a 100644 --- a/Word-document/Split-by-placeholder-text/.NET/Split-by-placeholder-text/README.md +++ b/Word-document/Split-by-placeholder-text/.NET/Split-by-placeholder-text/README.md @@ -1,6 +1,6 @@ # Split Word document by PlaceHolder using C# -The Syncfusion® [.NET Word Library](https://www.syncfusion.com/document-processing/word-framework/net/word-library) (DocIO) allows you to create, read, and edit Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **split a Word document by placeholders** using C#. +The [.NET Word Library](https://www.syncfusion.com/document-sdk/net-word-library) (DocIO) allows you to create, read, and edit Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **split a Word document by placeholders** using C#. ## Steps to split Word document by placeholders programmatically diff --git a/Word-document/Split-by-section/.NET/Split-by-section/README.md b/Word-document/Split-by-section/.NET/Split-by-section/README.md index cd6133872..dbf765b79 100644 --- a/Word-document/Split-by-section/.NET/Split-by-section/README.md +++ b/Word-document/Split-by-section/.NET/Split-by-section/README.md @@ -1,6 +1,6 @@ # Split Word document by Section using C# -The Syncfusion® [.NET Word Library](https://www.syncfusion.com/document-processing/word-framework/net/word-library) (DocIO) enables you to create, read, and edit Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **split a Word document by sections** using C#. +The [.NET Word Library](https://www.syncfusion.com/document-sdk/net-word-library) (DocIO) enables you to create, read, and edit Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **split a Word document by sections** using C#. ## Steps to split Word document by sections programmatically diff --git a/Word-to-Image-conversion/First-page-of-Word-to-image/.NET/First-page-of-Word-to-image/README.md b/Word-to-Image-conversion/First-page-of-Word-to-image/.NET/First-page-of-Word-to-image/README.md index e95166955..c2273d933 100644 --- a/Word-to-Image-conversion/First-page-of-Word-to-image/.NET/First-page-of-Word-to-image/README.md +++ b/Word-to-Image-conversion/First-page-of-Word-to-image/.NET/First-page-of-Word-to-image/README.md @@ -1,6 +1,6 @@ # Convert Word document to Image using C# -The Syncfusion® [.NET Word Library](https://www.syncfusion.com/document-processing/word-framework/net/word-library) (DocIO) enables you to create, read, edit, and convert Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **convert a Word document to Image** using C#. +The [.NET Word Library](https://www.syncfusion.com/document-sdk/net-word-library) (DocIO) enables you to create, read, edit, and convert Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **convert a Word document to Image** using C#. ## Steps to convert Word to Image programmatically diff --git a/Word-to-Markdown-conversion/Convert-Word-to-Markdown/.NET/Convert-Word-to-Markdown/README.md b/Word-to-Markdown-conversion/Convert-Word-to-Markdown/.NET/Convert-Word-to-Markdown/README.md index 09e072d27..6ec6176ca 100644 --- a/Word-to-Markdown-conversion/Convert-Word-to-Markdown/.NET/Convert-Word-to-Markdown/README.md +++ b/Word-to-Markdown-conversion/Convert-Word-to-Markdown/.NET/Convert-Word-to-Markdown/README.md @@ -1,6 +1,6 @@ # Convert Word document to Markdown using C# -The Syncfusion® [.NET Word Library](https://www.syncfusion.com/document-processing/word-framework/net/word-library) (DocIO) enables you to create, read, edit, and convert Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **convert a Word document to Markdown** using C#. +The [.NET Word Library](https://www.syncfusion.com/document-sdk/net-word-library) (DocIO) enables you to create, read, edit, and convert Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **convert a Word document to Markdown** using C#. ## Steps to convert Word to Markdown programmatically diff --git a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/.NET/Convert-Word-document-to-PDF/Program.cs b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/.NET/Convert-Word-document-to-PDF/Program.cs index db8e72569..e781eb588 100644 --- a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/.NET/Convert-Word-document-to-PDF/Program.cs +++ b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/.NET/Convert-Word-document-to-PDF/Program.cs @@ -4,33 +4,17 @@ using Syncfusion.Pdf; using System.IO; -namespace Convert_Word_document_to_PDF +// Loads an existing Word document. +using (WordDocument wordDocument = new WordDocument(Path.GetFullPath(@"Data/Template.docx"))) { - class Program + // Creates an instance of DocIORenderer. + using (DocIORenderer renderer = new DocIORenderer()) { - static void Main(string[] args) + // Converts Word document into PDF document. + using (PdfDocument pdfDocument = renderer.ConvertToPDF(wordDocument)) { - //Open the Word document file stream. - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open)) - { - //Loads an existing Word document. - using (WordDocument wordDocument = new WordDocument(fileStream, FormatType.Automatic)) - { - //Creates an instance of DocIORenderer. - using (DocIORenderer renderer = new DocIORenderer()) - { - //Converts Word document into PDF document. - using (PdfDocument pdfDocument = renderer.ConvertToPDF(wordDocument)) - { - //Saves the PDF file to file system. - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/WordToPDF.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) - { - pdfDocument.Save(outputStream); - } - } - } - } - } + // Saves the PDF file to file system. + pdfDocument.Save(Path.GetFullPath(@"Output/WordToPDF.pdf")); } } } diff --git a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/.NET/Convert-Word-document-to-PDF/README.md b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/.NET/Convert-Word-document-to-PDF/README.md index 7e9ff5fe0..14d138eac 100644 --- a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/.NET/Convert-Word-document-to-PDF/README.md +++ b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/.NET/Convert-Word-document-to-PDF/README.md @@ -1,6 +1,6 @@ # Convert Word document to PDF using C# -The Syncfusion® [.NET Word Library](https://www.syncfusion.com/document-processing/word-framework/net/word-library) (DocIO) enables you to create, read, edit, and convert Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **convert a Word document to PDF** using C#. +The [.NET Word Library](https://www.syncfusion.com/document-processing/word-framework/net/word-library) (DocIO) enables you to create, read, edit, and convert Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **convert a Word document to PDF** using C#. ## Steps to convert Word to PDF programmatically diff --git a/Word-to-PDF-Conversion/Convert-Word-into-accessible-PDF/.NET/Convert-Word-into-accessible-PDF/README.md b/Word-to-PDF-Conversion/Convert-Word-into-accessible-PDF/.NET/Convert-Word-into-accessible-PDF/README.md index 1f33166ac..a00312c61 100644 --- a/Word-to-PDF-Conversion/Convert-Word-into-accessible-PDF/.NET/Convert-Word-into-accessible-PDF/README.md +++ b/Word-to-PDF-Conversion/Convert-Word-into-accessible-PDF/.NET/Convert-Word-into-accessible-PDF/README.md @@ -1,6 +1,6 @@ # Convert Word document to PDF/UA using C# -The Syncfusion® [.NET Word Library](https://www.syncfusion.com/document-processing/word-framework/net/word-library) (DocIO) enables you to create, read, edit, and convert Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **convert a Word document to PDF/UA** using C#. +The [.NET Word Library](https://www.syncfusion.com/document-sdk/net-word-library) (DocIO) enables you to create, read, edit, and convert Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **convert a Word document to PDF/UA** using C#. ## Steps to convert Word to PDF/UA programmatically diff --git a/Word-to-PDF-Conversion/PDF-conformance-level/.NET/PDF-conformance-level/README.md b/Word-to-PDF-Conversion/PDF-conformance-level/.NET/PDF-conformance-level/README.md index c3d8fe003..00006e2b4 100644 --- a/Word-to-PDF-Conversion/PDF-conformance-level/.NET/PDF-conformance-level/README.md +++ b/Word-to-PDF-Conversion/PDF-conformance-level/.NET/PDF-conformance-level/README.md @@ -1,6 +1,6 @@ # Convert Word document to PDF/A using C# -The Syncfusion® [.NET Word Library](https://www.syncfusion.com/document-processing/word-framework/net/word-library) (DocIO) enables you to create, read, edit, and convert Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **convert a Word document to PDF/A** using C#. +The [.NET Word Library](https://www.syncfusion.com/document-sdk/net-word-library) (DocIO) enables you to create, read, edit, and convert Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can **convert a Word document to PDF/A** using C#. ## Steps to convert Word to PDF/A programmatically