You can find detailed information at: Convert PowerPoint Presentations to SVG using C++
Last active
September 20, 2021 12:44
-
-
Save aspose-com-gists/218bd79bdb6c8c165463285735710384 to your computer and use it in GitHub Desktop.
Convert PowerPoint Presentations to SVG 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"; | |
// Load the presentation file | |
auto presentation = System::MakeObject<Presentation>(sourceFilePath); | |
// Loop through the slides | |
for (SharedPtr<ISlide> slide : presentation->get_Slides()) | |
{ | |
// Create an instance of the FileStream class | |
SharedPtr<FileStream> stream = File::OpenWrite(String::Format(u"OutputDirectory\\PresentationToSvg_out_{0}.svg", slide->get_SlideNumber())); | |
// Write the slide to the stream | |
slide->WriteAsSvg(stream); | |
// Close the stream | |
stream->Close(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment