You can find detailed information at: Convert PowerPoint to XAML using C++
Last active
September 14, 2021 15:04
-
-
Save aspose-com-gists/468bc881bfc14ea7440a602cd04fa695 to your computer and use it in GitHub Desktop.
Convert PowerPoint to XAML using C++
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Source File path | |
const String sourceFilePath = u"SourceDirectory\\Slides\\SamplePresentation.pptx"; | |
const String outputFilePath = u"OutputDirectory\\ConvertToXAML_out.xaml"; | |
// Load the presentation file | |
auto presentation = System::MakeObject<Presentation>(sourceFilePath); | |
// Save the XAML files | |
presentation->Save(System::MakeObject<XamlOptions>()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Source File path | |
const String sourceFilePath = u"SourceDirectory\\Slides\\SamplePresentation.pptx"; | |
const String outputFilePath = u"OutputDirectory\\ConvertToXAML_out.xaml"; | |
// Load the presentation file | |
auto presentation = System::MakeObject<Presentation>(sourceFilePath); | |
// Create an instance of the XamlOptions class | |
auto xamlOptions = System::MakeObject<XamlOptions>(); | |
xamlOptions->set_ExportHiddenSlides(true); | |
// Save the XAML files | |
presentation->Save(xamlOptions); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment