SaveOptions
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.slides.ISaveOptions
public abstract class SaveOptions implements ISaveOptions
Abstract class with options that control how a presentation is saved.
Constructors
Constructor | Description |
---|---|
SaveOptions() |
Methods
Method | Description |
---|---|
getWarningCallback() | Returns of sets an object which receives warnings and decides whether loading process will continue or will be aborted. |
setWarningCallback(IWarningCallback value) | Returns of sets an object which receives warnings and decides whether loading process will continue or will be aborted. |
getProgressCallback() | Represents a callback object for saving progress updates in percentage. |
setProgressCallback(IProgressCallback value) | Represents a callback object for saving progress updates in percentage. |
getDefaultRegularFont() | Returns or sets font used in case source font is not found. |
setDefaultRegularFont(String value) | Returns or sets font used in case source font is not found. |
getGradientStyle() | Returns or sets the visual style of the gradient. |
setGradientStyle(int value) | Returns or sets the visual style of the gradient. |
SaveOptions()
public SaveOptions()
getWarningCallback()
public final IWarningCallback getWarningCallback()
Returns of sets an object which receives warnings and decides whether loading process will continue or will be aborted. Read/write IWarningCallback.
Returns: IWarningCallback
setWarningCallback(IWarningCallback value)
public final void setWarningCallback(IWarningCallback value)
Returns of sets an object which receives warnings and decides whether loading process will continue or will be aborted. Read/write IWarningCallback.
Parameters:
Parameter | Type | Description |
---|---|---|
value | IWarningCallback |
getProgressCallback()
public final IProgressCallback getProgressCallback()
Represents a callback object for saving progress updates in percentage. See IProgressCallback.
Returns: IProgressCallback
setProgressCallback(IProgressCallback value)
public final void setProgressCallback(IProgressCallback value)
Represents a callback object for saving progress updates in percentage. See IProgressCallback.
Parameters:
Parameter | Type | Description |
---|---|---|
value | IProgressCallback |
getDefaultRegularFont()
public final String getDefaultRegularFont()
Returns or sets font used in case source font is not found. Read-write String.
Presentation pres = new Presentation("SomePresentation.pptx"); try { HtmlOptions htmlOpts = new HtmlOptions(); htmlOpts.setDefaultRegularFont("Arial Black"); pres.save("SomePresentation-out-ArialBlack.html", SaveFormat.Html, htmlOpts); htmlOpts.setDefaultRegularFont("Lucida Console"); pres.save("Somepresentation-out-LucidaConsole.html", SaveFormat.Html, htmlOpts); PdfOptions pdfOpts = new PdfOptions(); pdfOpts.setDefaultRegularFont("Arial Black"); pres.save("SomePresentation-out-ArialBlack.pdf", SaveFormat.Pdf, pdfOpts); } finally { if (pres != null) pres.dispose(); }
Returns: java.lang.String
setDefaultRegularFont(String value)
public final void setDefaultRegularFont(String value)
Returns or sets font used in case source font is not found. Read-write String.
Presentation pres = new Presentation("SomePresentation.pptx"); try { HtmlOptions htmlOpts = new HtmlOptions(); htmlOpts.setDefaultRegularFont("Arial Black"); pres.save("SomePresentation-out-ArialBlack.html", SaveFormat.Html, htmlOpts); htmlOpts.setDefaultRegularFont("Lucida Console"); pres.save("Somepresentation-out-LucidaConsole.html", SaveFormat.Html, htmlOpts); PdfOptions pdfOpts = new PdfOptions(); pdfOpts.setDefaultRegularFont("Arial Black"); pres.save("SomePresentation-out-ArialBlack.pdf", SaveFormat.Pdf, pdfOpts); } finally { if (pres != null) pres.dispose(); }
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
getGradientStyle()
public final int getGradientStyle()
Returns or sets the visual style of the gradient. Read/write GradientStyle.
Returns: int
setGradientStyle(int value)
public final void setGradientStyle(int value)
Returns or sets the visual style of the gradient. Read/write GradientStyle.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |