# Convert PowerPoint Presentations to SWF Flash in Python

> Convert PowerPoint (PPT/PPTX) to SWF Flash in Python with Aspose.Slides. Step‑by‑step code samples, fast quality output, no PowerPoint automation.

Source: https://docs.aspose.com/slides/python-net/convert-powerpoint-to-swf-flash/
Updated: 2026-08-05


## **Overview**

This article explains how to convert PowerPoint presentations to SWF by using Aspose.Slides. It shows how to save a presentation as an SWF file with the [Presentation.save](https://reference.aspose.com/slides/python-net/aspose.slides/presentation/save/) method and how to configure the export with [SwfOptions](https://reference.aspose.com/slides/python-net/aspose.slides.export/swfoptions/), including viewer settings and notes or comments layout.

## **Convert Presentations to Flash**

The [save](https://reference.aspose.com/slides/python-net/aspose.slides/presentation/save/) method exposed by [Presentation](https://reference.aspose.com/slides/python-net/aspose.slides/presentation/) class can be used to convert the whole presentation into SWF document.  You can also include comments in generated SWF by using [SWFOptions](https://reference.aspose.com/slides/python-net/aspose.slides.export/swfoptions/) class and [NotesCommentsLayoutingOptions](https://reference.aspose.com/slides/python-net/aspose.slides.export/notescommentslayoutingoptions/) class. The following example shows how to convert a presentation into SWF document by using options provided by SWFOptions class.

```py
import aspose.slides as slides

# Instantiate a Presentation object that represents a presentation file
with slides.Presentation("pres.pptx") as presentation:

    swfOptions = slides.export.SwfOptions()
    swfOptions.viewer_included = False

    # Saving the presentation
    presentation.save("SaveAsSwf_out.swf", slides.export.SaveFormat.SWF, swfOptions)

    # Saving the presentation with the notes pages
    notesOptions = slides.export.NotesCommentsLayoutingOptions()
    notesOptions.notes_position = slides.export.NotesPositions.BOTTOM_FULL
    swfOptions.slides_layout_options = notesOptions

    presentation.save("SaveNotes_out.swf", slides.export.SaveFormat.SWF, swfOptions)
```

## **FAQ**

### Can I include hidden slides in the SWF?

Yes. Enable the [show_hidden_slides](https://reference.aspose.com/slides/python-net/aspose.slides.export/swfoptions/show_hidden_slides/) option in [SwfOptions](https://reference.aspose.com/slides/python-net/aspose.slides.export/swfoptions/). By default, hidden slides are not exported.

### How can I control compression and the final SWF size?

Use the [compressed](https://reference.aspose.com/slides/python-net/aspose.slides.export/swfoptions/compressed/) flag (enabled by default) and adjust [jpeg_quality](https://reference.aspose.com/slides/python-net/aspose.slides.export/swfoptions/jpeg_quality/) to balance file size and image fidelity.

### What is 'viewer_included' for, and when should I disable it?

[viewer_included](https://reference.aspose.com/slides/python-net/aspose.slides.export/swfoptions/viewer_included/) adds an embedded player UI (navigation controls, panels, search). Disable 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 [default_regular_font](https://reference.aspose.com/slides/python-net/aspose.slides.export/swfoptions/default_regular_font/) in [SwfOptions](https://reference.aspose.com/slides/python-net/aspose.slides.export/swfoptions/) to avoid an unintended fallback.



## Related articles

- [Extract Flash Objects from Presentations in Python](https://docs.aspose.com/slides/python-net/flash/)