-
-
Save sergey-tihon/5daf6d5281f2c997eb53513a463f5d1a to your computer and use it in GitHub Desktop.
Clippit Intro
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
var presentation = new PmlDocument(sourceFile); | |
// Pubslish slides | |
var slides = PresentationBuilder.PublishSlides(presentation).ToList(); | |
// Save slides into files | |
foreach (var slide in slides) | |
{ | |
var targetPath = Path.Combine(targetDir, Path.GetFileName(slide.FileName)) | |
slide.SaveAs(targetPath); | |
} | |
// Compose slides back into one presentation | |
var sources = slides.Select(x => new SlideSource(x, keepMaster:true)).ToList(); | |
PresentationBuilder.BuildPresentation(sources) | |
.SaveAs(newFileName); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment