From 1309772b1ecdb6fb9c75e643db5337287f80e020 Mon Sep 17 00:00:00 2001 From: Kathiresan4347 <159137198+Kathiresan4347@users.noreply.github.com> Date: Mon, 29 Dec 2025 18:57:05 +0530 Subject: [PATCH 1/4] ES-999797-Changes Added --- .../.NET/Convert-HTML-to-Word.slnx | 3 + .../Convert-HTML-to-Word.csproj | 24 ++++++++ .../.NET/Convert-HTML-to-Word/Data/Input.html | 58 +++++++++++++++++++ .../.NET/Convert-HTML-to-Word/Output/.gitkeep | 1 + .../.NET/Convert-HTML-to-Word/Program.cs | 25 ++++++++ 5 files changed, 111 insertions(+) create mode 100644 HTML-conversions/Convert-HTML-with-CSS-Selctor-to-Word/.NET/Convert-HTML-to-Word.slnx create mode 100644 HTML-conversions/Convert-HTML-with-CSS-Selctor-to-Word/.NET/Convert-HTML-to-Word/Convert-HTML-to-Word.csproj create mode 100644 HTML-conversions/Convert-HTML-with-CSS-Selctor-to-Word/.NET/Convert-HTML-to-Word/Data/Input.html create mode 100644 HTML-conversions/Convert-HTML-with-CSS-Selctor-to-Word/.NET/Convert-HTML-to-Word/Output/.gitkeep create mode 100644 HTML-conversions/Convert-HTML-with-CSS-Selctor-to-Word/.NET/Convert-HTML-to-Word/Program.cs diff --git a/HTML-conversions/Convert-HTML-with-CSS-Selctor-to-Word/.NET/Convert-HTML-to-Word.slnx b/HTML-conversions/Convert-HTML-with-CSS-Selctor-to-Word/.NET/Convert-HTML-to-Word.slnx new file mode 100644 index 000000000..628357901 --- /dev/null +++ b/HTML-conversions/Convert-HTML-with-CSS-Selctor-to-Word/.NET/Convert-HTML-to-Word.slnx @@ -0,0 +1,3 @@ + + + diff --git a/HTML-conversions/Convert-HTML-with-CSS-Selctor-to-Word/.NET/Convert-HTML-to-Word/Convert-HTML-to-Word.csproj b/HTML-conversions/Convert-HTML-with-CSS-Selctor-to-Word/.NET/Convert-HTML-to-Word/Convert-HTML-to-Word.csproj new file mode 100644 index 000000000..cbe86a224 --- /dev/null +++ b/HTML-conversions/Convert-HTML-with-CSS-Selctor-to-Word/.NET/Convert-HTML-to-Word/Convert-HTML-to-Word.csproj @@ -0,0 +1,24 @@ + + + + Exe + net8.0 + Convert_HTML_to_Word + enable + enable + + + + + + + + + Always + + + Always + + + + diff --git a/HTML-conversions/Convert-HTML-with-CSS-Selctor-to-Word/.NET/Convert-HTML-to-Word/Data/Input.html b/HTML-conversions/Convert-HTML-with-CSS-Selctor-to-Word/.NET/Convert-HTML-to-Word/Data/Input.html new file mode 100644 index 000000000..933fca48d --- /dev/null +++ b/HTML-conversions/Convert-HTML-with-CSS-Selctor-to-Word/.NET/Convert-HTML-to-Word/Data/Input.html @@ -0,0 +1,58 @@ + + +All CSS Selectors Demo + + + +

This is Element selector Paragraph

+

This is a class selector Paragraph

+

This is ID Selector paragraph

+

Group Selector Example

+

Paragraph styled by group selector.

+

Paragraph for Class + Compound

+
+

Descendent Selector Paragraph inside a div. +

+ + + + diff --git a/HTML-conversions/Convert-HTML-with-CSS-Selctor-to-Word/.NET/Convert-HTML-to-Word/Output/.gitkeep b/HTML-conversions/Convert-HTML-with-CSS-Selctor-to-Word/.NET/Convert-HTML-to-Word/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/HTML-conversions/Convert-HTML-with-CSS-Selctor-to-Word/.NET/Convert-HTML-to-Word/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/HTML-conversions/Convert-HTML-with-CSS-Selctor-to-Word/.NET/Convert-HTML-to-Word/Program.cs b/HTML-conversions/Convert-HTML-with-CSS-Selctor-to-Word/.NET/Convert-HTML-to-Word/Program.cs new file mode 100644 index 000000000..45a1d7e07 --- /dev/null +++ b/HTML-conversions/Convert-HTML-with-CSS-Selctor-to-Word/.NET/Convert-HTML-to-Word/Program.cs @@ -0,0 +1,25 @@ +using Syncfusion.DocIO; +using Syncfusion.DocIO.DLS; + +namespace Convert_HTML_to_Word +{ + class Program + { + static void Main(string[] args) + { + //Loads an existing Word document into DocIO instance. + using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Input.html"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + { + using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Html)) + { + //Creates file stream. + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + { + //Saves the Word document to file stream. + document.Save(outputFileStream, FormatType.Docx); + } + } + } + } + } +} From 4cad3fb5ea51feaf2525a257679d30597648153c Mon Sep 17 00:00:00 2001 From: Kathiresan4347 <159137198+Kathiresan4347@users.noreply.github.com> Date: Mon, 29 Dec 2025 18:58:41 +0530 Subject: [PATCH 2/4] ES-999797-Changes added --- .../.NET/Convert-HTML-to-Word/Convert-HTML-to-Word.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HTML-conversions/Convert-HTML-with-CSS-Selctor-to-Word/.NET/Convert-HTML-to-Word/Convert-HTML-to-Word.csproj b/HTML-conversions/Convert-HTML-with-CSS-Selctor-to-Word/.NET/Convert-HTML-to-Word/Convert-HTML-to-Word.csproj index cbe86a224..0b3b1ec96 100644 --- a/HTML-conversions/Convert-HTML-with-CSS-Selctor-to-Word/.NET/Convert-HTML-to-Word/Convert-HTML-to-Word.csproj +++ b/HTML-conversions/Convert-HTML-with-CSS-Selctor-to-Word/.NET/Convert-HTML-to-Word/Convert-HTML-to-Word.csproj @@ -9,7 +9,7 @@ - + From f7e3184f003dadafbb8df99d649feff9959d669c Mon Sep 17 00:00:00 2001 From: Kathiresan4347 <159137198+Kathiresan4347@users.noreply.github.com> Date: Mon, 29 Dec 2025 19:01:43 +0530 Subject: [PATCH 3/4] ES-999797-Input template modified --- .../.NET/Convert-HTML-to-Word/Data/Input.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/HTML-conversions/Convert-HTML-with-CSS-Selctor-to-Word/.NET/Convert-HTML-to-Word/Data/Input.html b/HTML-conversions/Convert-HTML-with-CSS-Selctor-to-Word/.NET/Convert-HTML-to-Word/Data/Input.html index 933fca48d..3bad33c32 100644 --- a/HTML-conversions/Convert-HTML-with-CSS-Selctor-to-Word/.NET/Convert-HTML-to-Word/Data/Input.html +++ b/HTML-conversions/Convert-HTML-with-CSS-Selctor-to-Word/.NET/Convert-HTML-to-Word/Data/Input.html @@ -52,7 +52,5 @@

Group Selector Example

Descendent Selector Paragraph inside a div.

- - - + From 427bd4f1b05fb602c24913a8a04d4b0d79505fa5 Mon Sep 17 00:00:00 2001 From: Kathiresan4347 <159137198+Kathiresan4347@users.noreply.github.com> Date: Wed, 31 Dec 2025 13:19:19 +0530 Subject: [PATCH 4/4] ES-999797-Input document modified --- .../.NET/Convert-HTML-to-Word/Data/Input.html | 34 ++++++++++--------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/HTML-conversions/Convert-HTML-with-CSS-Selctor-to-Word/.NET/Convert-HTML-to-Word/Data/Input.html b/HTML-conversions/Convert-HTML-with-CSS-Selctor-to-Word/.NET/Convert-HTML-to-Word/Data/Input.html index 3bad33c32..43aacdbc6 100644 --- a/HTML-conversions/Convert-HTML-with-CSS-Selctor-to-Word/.NET/Convert-HTML-to-Word/Data/Input.html +++ b/HTML-conversions/Convert-HTML-with-CSS-Selctor-to-Word/.NET/Convert-HTML-to-Word/Data/Input.html @@ -4,53 +4,55 @@

This is Element selector Paragraph

-

This is a class selector Paragraph

-

This is ID Selector paragraph

-

Group Selector Example

-

Paragraph styled by group selector.

-

Paragraph for Class + Compound

+

This is Class selector Paragraph

+

This is ID Selector Paragraph

+

This is Group Selector Paragraph

+

This is Group Selector Paragraph

+

This is Compound Selector Paragraph

-

Descendent Selector Paragraph inside a div. +

This is Descendent Selector Paragraph

+ + + -