# Convert PowerPoint Presentations to SWF Flash on Android

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

Source: https://docs.aspose.com/slides/androidjava/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/androidjava/com.aspose.slides/presentation/#save-java.lang.String-int-com.aspose.slides.ISaveOptions-) method and how to configure the export with [SwfOptions](https://reference.aspose.com/slides/androidjava/com.aspose.slides/swfoptions/), including viewer settings and notes or comments layout.

## **Convert PPT(X) to SWF**
The [Save](https://reference.aspose.com/slides/androidjava/com.aspose.slides/Presentation#save-java.lang.String-int-com.aspose.slides.ISaveOptions-) method exposed by [Presentation](https://reference.aspose.com/slides/androidjava/com.aspose.slides/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**](https://reference.aspose.com/slides/androidjava/com.aspose.slides/SwfOptions) class.You can also include comments in generated SWF using [**ISWFOptions**](https://reference.aspose.com/slides/androidjava/com.aspose.slides/ISwfOptions) class and [**INotesCommentsLayoutingOptions**](https://reference.aspose.com/slides/androidjava/com.aspose.slides/INotesCommentsLayoutingOptions) interface.

```java
import com.aspose.slides.*;

Presentation pres = new Presentation("Sample.pptx");
try {
    NotesCommentsLayoutingOptions notesOptions = new NotesCommentsLayoutingOptions();
    notesOptions.setNotesPosition(NotesPositions.BottomFull);

    SwfOptions swfOptions = new SwfOptions();
    swfOptions.setViewerIncluded(false);
    swfOptions.setSlidesLayoutOptions(notesOptions);

    // Saving presentation
    pres.save("Sample.swf", SaveFormat.Swf, swfOptions);
} finally {
    if (pres != null) pres.dispose();
}

```

## **FAQ**

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

Yes. Enable the hidden slides using the [setShowHiddenSlides](https://reference.aspose.com/slides/androidjava/com.aspose.slides/swfoptions/#setShowHiddenSlides-boolean-) method in [SwfOptions](https://reference.aspose.com/slides/androidjava/com.aspose.slides/swfoptions/). By default, hidden slides are not exported.

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

Use the [setCompressed](https://reference.aspose.com/slides/androidjava/com.aspose.slides/swfoptions/#setCompressed-boolean-) method and [adjust JPEG quality](https://reference.aspose.com/slides/androidjava/com.aspose.slides/swfoptions/#setJpegQuality-int-) to balance file size and image fidelity.

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

[setViewerIncluded](https://reference.aspose.com/slides/androidjava/com.aspose.slides/swfoptions/#setViewerIncluded-boolean-) 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 [setDefaultRegularFont](https://reference.aspose.com/slides/androidjava/com.aspose.slides/saveoptions/#setDefaultRegularFont-java.lang.String-) in [SwfOptions](https://reference.aspose.com/slides/androidjava/com.aspose.slides/swfoptions/) to avoid an unintended fallback.

