Convert PowerPoint to SWF Flash

Convert PPT(X) to SWF

The save method exposed by Presentation class can be used to convert the whole presentation into SWF document. The following example shows how to convert a presentation into SWF document by using options provided by SWFOptions class.You can also include comments in generated SWF using SWFOptions class and NotesCommentsLayoutingOptions class.

var pres = new aspose.slides.Presentation("Sample.pptx");
try {
    var swfOptions = new aspose.slides.SwfOptions();
    swfOptions.setViewerIncluded(false);
    swfOptions.getNotesCommentsLayouting().setNotesPosition(aspose.slides.NotesPositions.BottomFull);
    // Saving presentation
    pres.save("Sample.swf", aspose.slides.SaveFormat.Swf, swfOptions);
} finally {
    if (pres != null) {
        pres.dispose();
    }
}

FAQ

Can I include hidden slides in the SWF?

Yes. Use the setShowHiddenSlides method in SwfOptions. By default, hidden slides are not exported.

How can I control compression and the final SWF size?

Use the setCompressed method and setJpegQuality to balance file size and image fidelity.

What is ‘setViewerIncluded’ for, and when should I use it?

setViewerIncluded adds an embedded player UI (navigation controls, panels, search). Use it if you plan to use your own player or need a bare SWF frame without UI.

What happens if a source font is missing on the export machine?

Aspose.Slides will substitute the font you specify via setDefaultRegularFont in SwfOptions to avoid an unintended fallback.