public class SwfOptions extends SaveOptions implements ISwfOptions
Provides options that control how a presentation is saved in Swf format.
The following example shows how to convert PowerPoint to SWF Flash.// Instantiate a Presentation object that represents a presentation file Presentation pres = new Presentation("HelloWorld.pptx"); try { SwfOptions swfOptions = new SwfOptions(); swfOptions.setViewerIncluded(false); INotesCommentsLayoutingOptions notesOptions = swfOptions.getNotesCommentsLayouting(); notesOptions.setNotesPosition(NotesPositions.BottomFull); // Saving presentation and notes pages pres.save("SaveAsSwf_out.swf", SaveFormat.Swf, swfOptions); swfOptions.setViewerIncluded(true); pres.save("SaveNotes_out.swf", SaveFormat.Swf, swfOptions); } finally { if (pres != null) pres.dispose(); }
| Constructor and Description |
|---|
SwfOptions()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getCompressed()
Specifies whether the generated SWF document should be compressed or not.
|
boolean |
getEnableContextMenu()
Enable/disable context menu.
|
int |
getJpegQuality()
Specifies the quality of JPEG images.
|
byte[] |
getLogoImageBytes()
Image that will be displayed as logo in the top right corner of the viewer.
|
java.lang.String |
getLogoLink()
Gets or sets the full hyperlink address for a logo.
|
INotesCommentsLayoutingOptions |
getNotesCommentsLayouting()
Deprecated.
Use SlidesLayoutOptions property. The property NotesCommentsLayouting will be removed after release of version 25.8.
|
boolean |
getShowBottomPane()
Show/hide bottom pane.
|
boolean |
getShowFullScreen()
Show/hide fullscreen button.
|
boolean |
getShowHiddenSlides()
Specifies whether the generated document should include hidden slides or not.
|
boolean |
getShowLeftPane()
Show/hide left pane.
|
boolean |
getShowPageBorder()
Specifies whether border around pages should be shown.
|
boolean |
getShowPageStepper()
Show/hide page stepper.
|
boolean |
getShowSearch()
Show/hide search section.
|
boolean |
getShowTopPane()
Show/hide whole top pane.
|
ISlidesLayoutOptions |
getSlidesLayoutOptions()
Gets or sets the mode in which slides are placed on the page when exporting a presentation
ISlidesLayoutOptions. |
boolean |
getStartOpenLeftPane()
Start with opened left pane.
|
boolean |
getViewerIncluded()
Specifies whether the generated SWF document should include the integrated document viewer or not.
|
void |
setCompressed(boolean value)
Specifies whether the generated SWF document should be compressed or not.
|
void |
setEnableContextMenu(boolean value)
Enable/disable context menu.
|
void |
setJpegQuality(int value)
Specifies the quality of JPEG images.
|
void |
setLogoImageBytes(byte[] value)
Image that will be displayed as logo in the top right corner of the viewer.
|
void |
setLogoLink(java.lang.String value)
Gets or sets the full hyperlink address for a logo.
|
void |
setShowBottomPane(boolean value)
Show/hide bottom pane.
|
void |
setShowFullScreen(boolean value)
Show/hide fullscreen button.
|
void |
setShowHiddenSlides(boolean value)
Specifies whether the generated document should include hidden slides or not.
|
void |
setShowLeftPane(boolean value)
Show/hide left pane.
|
void |
setShowPageBorder(boolean value)
Specifies whether border around pages should be shown.
|
void |
setShowPageStepper(boolean value)
Show/hide page stepper.
|
void |
setShowSearch(boolean value)
Show/hide search section.
|
void |
setShowTopPane(boolean value)
Show/hide whole top pane.
|
void |
setSlidesLayoutOptions(ISlidesLayoutOptions value)
Gets or sets the mode in which slides are placed on the page when exporting a presentation
ISlidesLayoutOptions. |
void |
setStartOpenLeftPane(boolean value)
Start with opened left pane.
|
void |
setViewerIncluded(boolean value)
Specifies whether the generated SWF document should include the integrated document viewer or not.
|
getDefaultRegularFont, getGradientStyle, getProgressCallback, getSkipJavaScriptLinks, getWarningCallback, setDefaultRegularFont, setGradientStyle, setProgressCallback, setSkipJavaScriptLinks, setWarningCallbackequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefaultRegularFont, getGradientStyle, getProgressCallback, getSkipJavaScriptLinks, getWarningCallback, setDefaultRegularFont, setGradientStyle, setProgressCallback, setSkipJavaScriptLinks, setWarningCallbackpublic final boolean getShowHiddenSlides()
Specifies whether the generated document should include hidden slides or not. Default is false.
getShowHiddenSlides in interface ISwfOptionspublic final void setShowHiddenSlides(boolean value)
Specifies whether the generated document should include hidden slides or not. Default is false.
setShowHiddenSlides in interface ISwfOptionspublic final boolean getCompressed()
Specifies whether the generated SWF document should be compressed or not. Default is true.
getCompressed in interface ISwfOptionspublic final void setCompressed(boolean value)
Specifies whether the generated SWF document should be compressed or not. Default is true.
setCompressed in interface ISwfOptionspublic final boolean getViewerIncluded()
Specifies whether the generated SWF document should include the integrated document viewer or not. Default is true.
getViewerIncluded in interface ISwfOptionspublic final void setViewerIncluded(boolean value)
Specifies whether the generated SWF document should include the integrated document viewer or not. Default is true.
setViewerIncluded in interface ISwfOptionspublic final boolean getShowPageBorder()
Specifies whether border around pages should be shown. Default is true.
getShowPageBorder in interface ISwfOptionspublic final void setShowPageBorder(boolean value)
Specifies whether border around pages should be shown. Default is true.
setShowPageBorder in interface ISwfOptionspublic final boolean getShowFullScreen()
Show/hide fullscreen button. Can be overridden in flashvars. Default is true.
getShowFullScreen in interface ISwfOptionspublic final void setShowFullScreen(boolean value)
Show/hide fullscreen button. Can be overridden in flashvars. Default is true.
setShowFullScreen in interface ISwfOptionspublic final boolean getShowPageStepper()
Show/hide page stepper. Can be overridden in flashvars. Default is true.
getShowPageStepper in interface ISwfOptionspublic final void setShowPageStepper(boolean value)
Show/hide page stepper. Can be overridden in flashvars. Default is true.
setShowPageStepper in interface ISwfOptionspublic final boolean getShowSearch()
Show/hide search section. Can be overridden in flashvars. Default is true.
getShowSearch in interface ISwfOptionspublic final void setShowSearch(boolean value)
Show/hide search section. Can be overridden in flashvars. Default is true.
setShowSearch in interface ISwfOptionspublic final boolean getShowTopPane()
Show/hide whole top pane. Can be overridden in flashvars. Default is true.
getShowTopPane in interface ISwfOptionspublic final void setShowTopPane(boolean value)
Show/hide whole top pane. Can be overridden in flashvars. Default is true.
setShowTopPane in interface ISwfOptionspublic final boolean getShowBottomPane()
Show/hide bottom pane. Can be overridden in flashvars. Default is true.
getShowBottomPane in interface ISwfOptionspublic final void setShowBottomPane(boolean value)
Show/hide bottom pane. Can be overridden in flashvars. Default is true.
setShowBottomPane in interface ISwfOptionspublic final boolean getShowLeftPane()
Show/hide left pane. Can be overridden in flashvars. Default is true.
getShowLeftPane in interface ISwfOptionspublic final void setShowLeftPane(boolean value)
Show/hide left pane. Can be overridden in flashvars. Default is true.
setShowLeftPane in interface ISwfOptionspublic final boolean getStartOpenLeftPane()
Start with opened left pane. Can be overridden in flashvars. Default is false.
getStartOpenLeftPane in interface ISwfOptionspublic final void setStartOpenLeftPane(boolean value)
Start with opened left pane. Can be overridden in flashvars. Default is false.
setStartOpenLeftPane in interface ISwfOptionspublic final boolean getEnableContextMenu()
Enable/disable context menu. Default is true.
getEnableContextMenu in interface ISwfOptionspublic final void setEnableContextMenu(boolean value)
Enable/disable context menu. Default is true.
setEnableContextMenu in interface ISwfOptionspublic final byte[] getLogoImageBytes()
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.
getLogoImageBytes in interface ISwfOptionspublic final void setLogoImageBytes(byte[] value)
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.
setLogoImageBytes in interface ISwfOptionspublic final java.lang.String getLogoLink()
Gets or sets the full hyperlink address for a logo.
Has an effect only if a (getLogoImageBytes()/setLogoImageBytes(byte[])) is specified.
getLogoLink in interface ISwfOptionspublic final void setLogoLink(java.lang.String value)
Gets or sets the full hyperlink address for a logo.
Has an effect only if a (getLogoImageBytes()/setLogoImageBytes(byte[])) is specified.
setLogoLink in interface ISwfOptionspublic final int getJpegQuality()
Specifies the quality of JPEG images. Default is 95.
getJpegQuality in interface ISwfOptionspublic final void setJpegQuality(int value)
Specifies the quality of JPEG images. Default is 95.
setJpegQuality in interface ISwfOptions@Deprecated public final INotesCommentsLayoutingOptions getNotesCommentsLayouting()
Provides options that control how notes and comments is placed in exported document.
getNotesCommentsLayouting in interface ISwfOptionspublic final ISlidesLayoutOptions getSlidesLayoutOptions()
Gets or sets the mode in which slides are placed on the page when exporting a presentation ISlidesLayoutOptions.
This property doesn't support assigning objects of type HandoutLayoutingOptions
Example:Presentation pres = new Presentation("pres.pptx"); try { NotesCommentsLayoutingOptions notesOptions = new NotesCommentsLayoutingOptions(); notesOptions.setCommentsPosition(CommentsPositions.Right); SwfOptions options = new SwfOptions(); options.setSlidesLayoutOptions(notesOptions); pres.save("pres.swf", SaveFormat.Swf, options); } finally { if (pres != null) pres.dispose(); }
getSlidesLayoutOptions in interface ISwfOptionspublic final void setSlidesLayoutOptions(ISlidesLayoutOptions value)
Gets or sets the mode in which slides are placed on the page when exporting a presentation ISlidesLayoutOptions.
This property doesn't support assigning objects of type HandoutLayoutingOptions.
Example:Presentation pres = new Presentation("pres.pptx"); try { NotesCommentsLayoutingOptions notesOptions = new NotesCommentsLayoutingOptions(); notesOptions.setCommentsPosition(CommentsPositions.Right); SwfOptions options = new SwfOptions(); options.setSlidesLayoutOptions(notesOptions); pres.save("pres.swf", SaveFormat.Swf, options); } finally { if (pres != null) pres.dispose(); }
setSlidesLayoutOptions in interface ISwfOptionsCopyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.