Skip to content

Commit 2099cb0

Browse files
Modified README file
1 parent ed35e09 commit 2099cb0

File tree

6 files changed

+48
-13
lines changed
  • Find-and-Replace/Replace-misspelled-word/.NET/Replace-misspelled-word
  • Security
    • Encrypt-Word-document-with-password/.NET/Encrypt-Word-document-with-password
    • Remove-encryption-from-Word-document/.NET/Remove-encryption-from-Word-document
  • Word-document/Split-by-heading/.NET/Split-by-heading
  • Word-to-Image-conversion/First-page-of-Word-to-image/.NET/First-page-of-Word-to-image

6 files changed

+48
-13
lines changed

Find-and-Replace/Replace-misspelled-word/.NET/Replace-misspelled-word/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Find and replace text in Word document using C#
22

3-
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#.
3+
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#.
44

55
## Steps to find and replace text programmatically
66

7-
Step 1: Create a new . NET Core console application project.
7+
Step 1: Create a new .NET Core console application project.
88

9-
Step 2: Install the [Syncfusion. DocIO. Net. Core](https://www.nuget.org/packages/Syncfusion.DocIO.Net.Core) NuGet package as a reference to your project from [NuGet.org](https://www.nuget.org/).
9+
Step 2: Install the [Syncfusion.DocIO.Net.Core](https://www.nuget.org/packages/Syncfusion.DocIO.Net.Core) NuGet package as a reference to your project from [NuGet.org](https://www.nuget.org/).
1010

1111
Step 3: Include the following namespaces in the Program.cs file.
1212

Security/Encrypt-Word-document-with-password/.NET/Encrypt-Word-document-with-password/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Encrypt Word document using C#
22

3-
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#.
3+
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#.
44

55
## Steps to encrypt a Word document programmatically
66

7-
Step 1: Create a new . NET Core console application project.
7+
Step 1: Create a new .NET Core console application project.
88

9-
Step 2: Install the [Syncfusion. DocIO. Net. Core](https://www.nuget.org/packages/Syncfusion.DocIO.Net.Core) NuGet package as a reference to your project from [NuGet.org](https://www.nuget.org/).
9+
Step 2: Install the [Syncfusion.DocIO.Net.Core](https://www.nuget.org/packages/Syncfusion.DocIO.Net.Core) NuGet package as a reference to your project from [NuGet.org](https://www.nuget.org/).
1010

1111
Step 3: Include the following namespaces in the Program.cs file.
1212

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Decrypt Word document using C#
2+
3+
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#.
4+
5+
## Steps to decrypt a Word document programmatically
6+
7+
Step 1: Create a new .NET Core console application project.
8+
9+
Step 2: Install the [Syncfusion.DocIO.Net.Core](https://www.nuget.org/packages/Syncfusion.DocIO.Net.Core) NuGet package as a reference to your project from [NuGet.org](https://www.nuget.org/).
10+
11+
Step 3: Include the following namespaces in the Program.cs file.
12+
13+
```csharp
14+
using Syncfusion.DocIO;
15+
using Syncfusion.DocIO.DLS;
16+
using System.IO;
17+
```
18+
19+
Step 4: Add the following code snippet in Program.cs file to decrypt a Word document.
20+
21+
```csharp
22+
using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.ReadWrite))
23+
{
24+
//Opens an encrypted Word document.
25+
using (WordDocument document = new WordDocument(fileStream, "syncfusion"))
26+
{
27+
//Removes encryption in Word document.
28+
document.RemoveEncryption();
29+
//Creates file stream.
30+
using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite))
31+
{
32+
//Saves the Word document to file stream.
33+
document.Save(outputStream, FormatType.Docx);
34+
}
35+
}
36+
}
37+
```
38+
39+
More information about the encrypt and decrypt options can be found in this [documentation](https://help.syncfusion.com/document-processing/word/word-library/net/working-with-security) section.

Word-document/Split-by-heading/.NET/Split-by-heading/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Split Word document by Headings using C#
22

3-
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#.
3+
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#.
44

55
## Steps to split Word document by headings programmatically
66

7-
Step 1: Create a new . NET Core console application project.
7+
Step 1: Create a new .NET Core console application project.
88

9-
Step 2: Install the [Syncfusion. DocIO. Net. Core](https://www.nuget.org/packages/Syncfusion.DocIO.Net.Core) NuGet package as a reference to your project from [NuGet.org](https://www.nuget.org/).
9+
Step 2: Install the [Syncfusion.DocIO.Net.Core](https://www.nuget.org/packages/Syncfusion.DocIO.Net.Core) NuGet package as a reference to your project from [NuGet.org](https://www.nuget.org/).
1010

1111
Step 3: Include the following namespaces in the Program.cs file.
1212

Word-to-Image-conversion/First-page-of-Word-to-image/.NET/First-page-of-Word-to-image/Program.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ static void Main(string[] args)
1919
{
2020
//Convert the first page of the Word document into an image.
2121
Stream imageStream = wordDocument.RenderAsImages(0, ExportImageFormat.Jpeg);
22-
//Resets the stream position.
23-
imageStream.Position = 0;
2422
//Creates the output image file stream.
2523
using (FileStream fileStreamOutput = File.Create(Path.GetFullPath(@"Output/Output.jpeg")))
2624
{

Word-to-Image-conversion/First-page-of-Word-to-image/.NET/First-page-of-Word-to-image/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.d
3030
{
3131
//Convert the first page of the Word document into an image.
3232
Stream imageStream = wordDocument.RenderAsImages(0, ExportImageFormat.Jpeg);
33-
//Resets the stream position.
34-
imageStream.Position = 0;
3533
//Creates the output image file stream.
3634
using (FileStream fileStreamOutput = File.Create(Path.GetFullPath(@"Output/Output.jpeg")))
3735
{

0 commit comments

Comments
 (0)