diff --git a/Markdown-to-Presentation-conversion/Convert-Markdown-to-Presentation/.NET/Convert-Markdown-to-Presentation.sln b/Markdown-to-Presentation-conversion/Convert-Markdown-to-Presentation/.NET/Convert-Markdown-to-Presentation.sln new file mode 100644 index 00000000..a22f5c65 --- /dev/null +++ b/Markdown-to-Presentation-conversion/Convert-Markdown-to-Presentation/.NET/Convert-Markdown-to-Presentation.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.14.37301.10 d17.14 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Convert-Markdown-to-Presentation", "Convert-Markdown-to-Presentation\Convert-Markdown-to-Presentation.csproj", "{2F4CF0E4-9DC6-1598-F362-BCAFBA250F7C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {2F4CF0E4-9DC6-1598-F362-BCAFBA250F7C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2F4CF0E4-9DC6-1598-F362-BCAFBA250F7C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2F4CF0E4-9DC6-1598-F362-BCAFBA250F7C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2F4CF0E4-9DC6-1598-F362-BCAFBA250F7C}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {B0691798-8135-4BFB-9A63-AB5C12E768A7} + EndGlobalSection +EndGlobal diff --git a/Markdown-to-Presentation-conversion/Convert-Markdown-to-Presentation/.NET/Convert-Markdown-to-Presentation/Convert-Markdown-to-Presentation.csproj b/Markdown-to-Presentation-conversion/Convert-Markdown-to-Presentation/.NET/Convert-Markdown-to-Presentation/Convert-Markdown-to-Presentation.csproj new file mode 100644 index 00000000..cb2e9e16 --- /dev/null +++ b/Markdown-to-Presentation-conversion/Convert-Markdown-to-Presentation/.NET/Convert-Markdown-to-Presentation/Convert-Markdown-to-Presentation.csproj @@ -0,0 +1,23 @@ + + + + Exe + net8.0 + enable + enable + + + + + + + + + Always + + + Always + + + + diff --git a/Markdown-to-Presentation-conversion/Convert-Markdown-to-Presentation/.NET/Convert-Markdown-to-Presentation/Data/Input.md b/Markdown-to-Presentation-conversion/Convert-Markdown-to-Presentation/.NET/Convert-Markdown-to-Presentation/Data/Input.md new file mode 100644 index 00000000..e69de29b diff --git a/Markdown-to-Presentation-conversion/Convert-Markdown-to-Presentation/.NET/Convert-Markdown-to-Presentation/Output/gitkeep.txt b/Markdown-to-Presentation-conversion/Convert-Markdown-to-Presentation/.NET/Convert-Markdown-to-Presentation/Output/gitkeep.txt new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Markdown-to-Presentation-conversion/Convert-Markdown-to-Presentation/.NET/Convert-Markdown-to-Presentation/Output/gitkeep.txt @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Markdown-to-Presentation-conversion/Convert-Markdown-to-Presentation/.NET/Convert-Markdown-to-Presentation/Program.cs b/Markdown-to-Presentation-conversion/Convert-Markdown-to-Presentation/.NET/Convert-Markdown-to-Presentation/Program.cs new file mode 100644 index 00000000..cb026eaf --- /dev/null +++ b/Markdown-to-Presentation-conversion/Convert-Markdown-to-Presentation/.NET/Convert-Markdown-to-Presentation/Program.cs @@ -0,0 +1,25 @@ +using Syncfusion.Presentation; + +namespace Convert_Markdown_to_Presentation +{ + class Program + { + + static void Main(string[] args) + { + //Open the file as a Stream. + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Input.md"), FileMode.Open, FileAccess.Read)) + { + //Load the file stream. + using (IPresentation presentation = Presentation.Open(fileStream)) + { + //Save as a Markdown document into the PPTX FileStream. + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/MarkdownToPPTX.pptx"), FileMode.Create)) + { + presentation.Save(outputStream); + } + } + } + } + } +} diff --git a/Presentation-to-Markdown-conversion/Convert-Presentation-to-Markdown/.NET/Convert-Presentation-to-Markdown.sln b/Presentation-to-Markdown-conversion/Convert-Presentation-to-Markdown/.NET/Convert-Presentation-to-Markdown.sln new file mode 100644 index 00000000..f0314f3e --- /dev/null +++ b/Presentation-to-Markdown-conversion/Convert-Presentation-to-Markdown/.NET/Convert-Presentation-to-Markdown.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.14.37301.10 d17.14 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Convert-Presentation-to-Markdown", "Convert-Presentation-to-Markdown\Convert-Presentation-to-Markdown.csproj", "{C280950F-91E6-9CA4-EA42-80D2A16BE880}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {C280950F-91E6-9CA4-EA42-80D2A16BE880}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C280950F-91E6-9CA4-EA42-80D2A16BE880}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C280950F-91E6-9CA4-EA42-80D2A16BE880}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C280950F-91E6-9CA4-EA42-80D2A16BE880}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {3DFDC2F4-0C28-49EA-869A-9C6A6BB898D1} + EndGlobalSection +EndGlobal diff --git a/Presentation-to-Markdown-conversion/Convert-Presentation-to-Markdown/.NET/Convert-Presentation-to-Markdown/Convert-Presentation-to-Markdown.csproj b/Presentation-to-Markdown-conversion/Convert-Presentation-to-Markdown/.NET/Convert-Presentation-to-Markdown/Convert-Presentation-to-Markdown.csproj new file mode 100644 index 00000000..f6e5bd28 --- /dev/null +++ b/Presentation-to-Markdown-conversion/Convert-Presentation-to-Markdown/.NET/Convert-Presentation-to-Markdown/Convert-Presentation-to-Markdown.csproj @@ -0,0 +1,23 @@ + + + + Exe + net8.0 + enable + enable + + + + + + + + + Always + + + Always + + + + diff --git a/Presentation-to-Markdown-conversion/Convert-Presentation-to-Markdown/.NET/Convert-Presentation-to-Markdown/Data/Input.pptx b/Presentation-to-Markdown-conversion/Convert-Presentation-to-Markdown/.NET/Convert-Presentation-to-Markdown/Data/Input.pptx new file mode 100644 index 00000000..e69de29b diff --git a/Presentation-to-Markdown-conversion/Convert-Presentation-to-Markdown/.NET/Convert-Presentation-to-Markdown/Output/gitkeep.txt b/Presentation-to-Markdown-conversion/Convert-Presentation-to-Markdown/.NET/Convert-Presentation-to-Markdown/Output/gitkeep.txt new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Presentation-to-Markdown-conversion/Convert-Presentation-to-Markdown/.NET/Convert-Presentation-to-Markdown/Output/gitkeep.txt @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Presentation-to-Markdown-conversion/Convert-Presentation-to-Markdown/.NET/Convert-Presentation-to-Markdown/Program.cs b/Presentation-to-Markdown-conversion/Convert-Presentation-to-Markdown/.NET/Convert-Presentation-to-Markdown/Program.cs new file mode 100644 index 00000000..c35a7a35 --- /dev/null +++ b/Presentation-to-Markdown-conversion/Convert-Presentation-to-Markdown/.NET/Convert-Presentation-to-Markdown/Program.cs @@ -0,0 +1,25 @@ +using Syncfusion.Presentation; + +namespace Convert_Presentation_to_Markdown +{ + class Program + { + + static void Main(string[] args) + { + //Open the file as a Stream. + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Input.pptx"), FileMode.Open, FileAccess.Read)) + { + //Load the file stream + using (IPresentation presentation = Presentation.Open(fileStream)) + { + //Save as a PPTX document into the Markdown FileStream. + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/MarkdownToPPTX.md"), FileMode.Create)) + { + presentation.Save(outputStream); + } + } + } + } + } +}