Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<Solution>
<Project Path="Convert-PPTX-to-Markdown-with-PPTX-Elements/Convert-PPTX-to-Markdown-with-PPTX-Elements.csproj" />
</Solution>
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<RootNamespace>Convert_PPTX_to_Markdown_with_PPTX_Elements</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Syncfusion.PresentationRenderer.Net.Core" Version="*" />
</ItemGroup>

<ItemGroup>
<None Update="Data\Input.pptx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Output\.gitkeep">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

</Project>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -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"));
}
}
}
}
Loading