Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active August 5, 2021 23:48
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/154ccb15bd5aee545b38d8d2db487533 to your computer and use it in GitHub Desktop.
Save aspose-com-gists/154ccb15bd5aee545b38d8d2db487533 to your computer and use it in GitHub Desktop.
Convert PowerPoint to XAML in C#
// Load the PowerPoint presentation
using (Presentation pres = new Presentation("pres.pptx"))
{
// Set options
XamlOptions options = new XamlOptions();
options.ExportHiddenSlides = true;
// Convert presentation to XAML
pres.Save(options);
}
// Load the PowerPoint presentation
using (Presentation pres = new Presentation("pres.pptx"))
{
// Convert presentation to XAML
pres.Save(new XamlOptions());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment