SwfOptions
Contents
[
Hide
]SwfOptions class
Provides options that control how a presentation is saved in Swf format.
public class SwfOptions : SaveOptions, ISwfOptions
Constructors
Name | Description |
---|---|
SwfOptions() | Default constructor. |
Properties
Name | Description |
---|---|
Compressed { get; set; } | Specifies whether the generated SWF document should be compressed or not. Default is true . |
DefaultRegularFont { get; set; } | Returns or sets font used in case source font is not found. Read-write String. |
EnableContextMenu { get; set; } | Enable/disable context menu. Default is true. |
GradientStyle { get; set; } | Returns or sets the visual style of the gradient. Read/write GradientStyle . |
JpegQuality { get; set; } | Specifies the quality of JPEG images. Default is 95. |
LogoImageBytes { get; set; } | Image that will be displayed as logo in the top right corner of the viewer. Image should be 32x64 pixels PNG image, otherwise logo can be displayed improperly. |
LogoLink { get; set; } | Gets or sets the full hyperlink address for a logo. Has an effect only if a LogoImageBytes is specified. |
NotesCommentsLayouting { get; } | Provides options that control how notes and comments is placed in exported document. |
ProgressCallback { get; set; } | Represents a callback object for saving progress updates in percentage. See IProgressCallback . |
ShowBottomPane { get; set; } | Show/hide bottom pane. Can be overridden in flashvars. Default is true. |
ShowFullScreen { get; set; } | Show/hide fullscreen button. Can be overridden in flashvars. Default is true. |
ShowHiddenSlides { get; set; } | Specifies whether the generated document should include hidden slides or not. Default is false . |
ShowLeftPane { get; set; } | Show/hide left pane. Can be overridden in flashvars. Default is true. |
ShowPageBorder { get; set; } | Specifies whether border around pages should be shown. Default is true. |
ShowPageStepper { get; set; } | Show/hide page stepper. Can be overridden in flashvars. Default is true. |
ShowSearch { get; set; } | Show/hide search section. Can be overridden in flashvars. Default is true. |
ShowTopPane { get; set; } | Show/hide whole top pane. Can be overridden in flashvars. Default is true. |
StartOpenLeftPane { get; set; } | Start with opened left pane. Can be overridden in flashvars. Default is false. |
ViewerIncluded { get; set; } | Specifies whether the generated SWF document should include the integrated document viewer or not. Default is true . |
WarningCallback { get; set; } | Returns of sets an object which receives warnings and decides whether loading process will continue or will be aborted. Read/write IWarningCallback . |
Examples
The following example shows how to convert PowerPoint to SWF Flash.
[C#]
// Instantiate a Presentation object that represents a presentation file
using (Presentation presentation = new Presentation("HelloWorld.pptx"))
{
SwfOptions swfOptions = new SwfOptions();
swfOptions.ViewerIncluded = false;
INotesCommentsLayoutingOptions notesOptions = swfOptions.NotesCommentsLayouting;
notesOptions.NotesPosition = NotesPositions.BottomFull;
// Saving presentation and notes pages
presentation.Save("SaveAsSwf_out.swf", SaveFormat.Swf, swfOptions);
swfOptions.ViewerIncluded = true;
presentation.Save("SaveNotes_out.swf", SaveFormat.Swf, swfOptions);
}
See Also
- class SaveOptions
- interface ISwfOptions
- namespace Aspose.Slides.Export
- assembly Aspose.Slides