diff --git a/PPTX-to-Markdown-Conversion/Convert-PPTX-to-Markdown-with-PPTX-Elements/.NET/Convert-PPTX-to-Markdown-with-PPTX-Elements.slnx b/PPTX-to-Markdown-Conversion/Convert-PPTX-to-Markdown-with-PPTX-Elements/.NET/Convert-PPTX-to-Markdown-with-PPTX-Elements.slnx new file mode 100644 index 00000000..f31da878 --- /dev/null +++ b/PPTX-to-Markdown-Conversion/Convert-PPTX-to-Markdown-with-PPTX-Elements/.NET/Convert-PPTX-to-Markdown-with-PPTX-Elements.slnx @@ -0,0 +1,3 @@ + + + diff --git a/PPTX-to-Markdown-Conversion/Convert-PPTX-to-Markdown-with-PPTX-Elements/.NET/Convert-PPTX-to-Markdown-with-PPTX-Elements/Convert-PPTX-to-Markdown-with-PPTX-Elements.csproj b/PPTX-to-Markdown-Conversion/Convert-PPTX-to-Markdown-with-PPTX-Elements/.NET/Convert-PPTX-to-Markdown-with-PPTX-Elements/Convert-PPTX-to-Markdown-with-PPTX-Elements.csproj new file mode 100644 index 00000000..a63e6293 --- /dev/null +++ b/PPTX-to-Markdown-Conversion/Convert-PPTX-to-Markdown-with-PPTX-Elements/.NET/Convert-PPTX-to-Markdown-with-PPTX-Elements/Convert-PPTX-to-Markdown-with-PPTX-Elements.csproj @@ -0,0 +1,24 @@ + + + + Exe + net10.0 + Convert_PPTX_to_Markdown_with_PPTX_Elements + enable + enable + + + + + + + + + Always + + + Always + + + + diff --git a/PPTX-to-Markdown-Conversion/Convert-PPTX-to-Markdown-with-PPTX-Elements/.NET/Convert-PPTX-to-Markdown-with-PPTX-Elements/Data/Input.pptx b/PPTX-to-Markdown-Conversion/Convert-PPTX-to-Markdown-with-PPTX-Elements/.NET/Convert-PPTX-to-Markdown-with-PPTX-Elements/Data/Input.pptx new file mode 100644 index 00000000..78dc648f Binary files /dev/null and b/PPTX-to-Markdown-Conversion/Convert-PPTX-to-Markdown-with-PPTX-Elements/.NET/Convert-PPTX-to-Markdown-with-PPTX-Elements/Data/Input.pptx differ diff --git a/PPTX-to-Markdown-Conversion/Convert-PPTX-to-Markdown-with-PPTX-Elements/.NET/Convert-PPTX-to-Markdown-with-PPTX-Elements/Output/.gitkeep b/PPTX-to-Markdown-Conversion/Convert-PPTX-to-Markdown-with-PPTX-Elements/.NET/Convert-PPTX-to-Markdown-with-PPTX-Elements/Output/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/PPTX-to-Markdown-Conversion/Convert-PPTX-to-Markdown-with-PPTX-Elements/.NET/Convert-PPTX-to-Markdown-with-PPTX-Elements/Program.cs b/PPTX-to-Markdown-Conversion/Convert-PPTX-to-Markdown-with-PPTX-Elements/.NET/Convert-PPTX-to-Markdown-with-PPTX-Elements/Program.cs new file mode 100644 index 00000000..aa8414fc --- /dev/null +++ b/PPTX-to-Markdown-Conversion/Convert-PPTX-to-Markdown-with-PPTX-Elements/.NET/Convert-PPTX-to-Markdown-with-PPTX-Elements/Program.cs @@ -0,0 +1,21 @@ +using Syncfusion.Presentation; +using Syncfusion.PresentationRenderer; +using System.IO; + +namespace Convert_PPTX_To_Markdown_with_PPTX_Elements +{ + class Program + { + static void Main(string[] args) + { + //Open an existing Presentation document. + using (IPresentation presentation = Presentation.Open(Path.GetFullPath("Data/Input.pptx"))) + { + //Initialize the PresentationRenderer to preserve PowerPoint elements as images. + presentation.PresentationRenderer = new PresentationRenderer(); + //Save the PowerPoint Presentation as a Markdown file. + presentation.Save(Path.GetFullPath("Output/Output.md")); + } + } + } +} \ No newline at end of file