Convert PowerPoint to SWF Flash
Contents
[
Hide
]
The Save method exposed by Presentation class can be used to convert the whole presentation into SWF document. You can also include comments in generated SWF by using SWFOptions class and INotesCommentsLayoutingOptions interface. The following example shows how to convert a presentation into SWF document by using options provided by SWFOptions class.
// The path to the documents directory.
System::String dataDir = GetDataPath();
// Instantiate a Presentation object that represents a presentation file
auto presentation = System::MakeObject<Presentation>(dataDir + u"HelloWorld.pptx");
auto swfOptions = System::MakeObject<SwfOptions>();
swfOptions->set_ViewerIncluded(false);
auto notesOptions = swfOptions->get_NotesCommentsLayouting();
notesOptions->set_NotesPosition(NotesPositions::BottomFull);
// Saving presentation and notes pages
presentation->Save(dataDir + u"SaveAsSwf_out.swf", SaveFormat::Swf, swfOptions);
swfOptions->set_ViewerIncluded(true);
presentation->Save(dataDir + u"SaveNotes_out.swf", SaveFormat::Swf, swfOptions);