public static void Run() { // The path to the documents directory. string dataDir = RunExamples.GetDataDir_Conversion(); // Instantiate a Presentation object that represents a presentation file using (Presentation presentation = new Presentation(dataDir + "HelloWorld.pptx")) { SwfOptions swfOptions = new SwfOptions(); swfOptions.ViewerIncluded = false; // Saving presentation and notes pages presentation.Save(dataDir + "SaveAsSwf_out.swf", SaveFormat.Swf, swfOptions); swfOptions.ViewerIncluded = true; presentation.Save(dataDir + "SaveNotes_out.swf", SaveFormat.SwfNotes, swfOptions); } }
public static void Run() { // The path to the documents directory. string dataDir = RunExamples.GetDataDir_Conversion(); // Instantiate a Presentation object that represents a presentation file using (Presentation presentation = new Presentation(dataDir + "HelloWorld.pptx")) { SwfOptions swfOptions = new SwfOptions(); swfOptions.ViewerIncluded = false; // Saving presentation and notes pages presentation.Save(dataDir + "SaveAsSwf_out.swf", SaveFormat.Swf, swfOptions); swfOptions.ViewerIncluded = true; presentation.Save(dataDir + "SaveNotes_out.swf", SaveFormat.SwfNotes, swfOptions); } }
public static void Run() { //ExStart:ConvetToSWF // The path to the documents directory. string dataDir = RunExamples.GetDataDir_Conversion(); // Instantiate a Presentation object that represents a presentation file using (Presentation presentation = new Presentation(dataDir + "HelloWorld.pptx")) { SwfOptions swfOptions = new SwfOptions(); swfOptions.ViewerIncluded = false; INotesCommentsLayoutingOptions notesOptions = swfOptions.NotesCommentsLayouting; notesOptions.NotesPosition = NotesPositions.BottomFull; // Saving presentation and notes pages presentation.Save(dataDir + "SaveAsSwf_out.swf", SaveFormat.Swf, swfOptions); swfOptions.ViewerIncluded = true; presentation.Save(dataDir + "SaveNotes_out.swf", SaveFormat.Swf, swfOptions); } //ExEnd:ConvetToSWF }