Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active September 14, 2021 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aspose-com-gists/468bc881bfc14ea7440a602cd04fa695 to your computer and use it in GitHub Desktop.
Save aspose-com-gists/468bc881bfc14ea7440a602cd04fa695 to your computer and use it in GitHub Desktop.
Convert PowerPoint to XAML using C++
// 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>());
// 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