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,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
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>


<ItemGroup>
<PackageReference Include="Syncfusion.Presentation.Net.Core" Version="*" />
</ItemGroup>
<ItemGroup>
<None Update="Data\Input.md">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Output\.gitkeep">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -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);
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>


<ItemGroup>
<PackageReference Include="Syncfusion.Presentation.Net.Core" Version="*" />
</ItemGroup>
<ItemGroup>
<None Update="Data\Input.pptx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Output\.gitkeep">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -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);
}
}
}
}
}
}
Loading