ISaveOptions
public interface ISaveOptions
Options that control how a presentation is saved.
Methods
Method | Description |
---|---|
getWarningCallback() | Returns or sets an object which receives warnings and decides whether loading process will continue or will be aborted. |
setWarningCallback(IWarningCallback value) | Returns or 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. |
getSkipJavaScriptLinks() | Specifies whether the presentation Hyperlinks with JavaScript calls will be skipped while saving. |
setSkipJavaScriptLinks(boolean value) | Specifies whether the presentation Hyperlinks with JavaScript calls will be skipped while saving. |
getWarningCallback()
public abstract IWarningCallback getWarningCallback()
Returns or 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 abstract void setWarningCallback(IWarningCallback value)
Returns or 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 abstract IProgressCallback getProgressCallback()
Represents a callback object for saving progress updates in percentage. See IProgressCallback.
Returns: IProgressCallback
setProgressCallback(IProgressCallback value)
public abstract void setProgressCallback(IProgressCallback value)
Represents a callback object for saving progress updates in percentage. See IProgressCallback.
Parameters:
Parameter | Type | Description |
---|---|---|
value | IProgressCallback |
getDefaultRegularFont()
public abstract 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 abstract 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 abstract int getGradientStyle()
Returns or sets the visual style of the gradient. Read/write GradientStyle.
Returns: int
setGradientStyle(int value)
public abstract void setGradientStyle(int value)
Returns or sets the visual style of the gradient. Read/write GradientStyle.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
getSkipJavaScriptLinks()
public abstract boolean getSkipJavaScriptLinks()
Specifies whether the presentation Hyperlinks with JavaScript calls will be skipped while saving. Read/write boolean. Default value is false.
Example: Presentation pres = new Presentation("demo.pptx"); try { HtmlOptions htmlOptions = new HtmlOptions(); htmlOptions.setSkipJavaScriptLinks(true); pres.save("result_without_JavaScript_links.html", SaveFormat.Html, htmlOptions); } finally { if (pres != null) pres.dispose(); }
When the option value is true, the Hyperlinks with JavaScript calls will be ignored.
When the option value is false, the all Hyperlinks will be saved.
Returns: boolean
setSkipJavaScriptLinks(boolean value)
public abstract void setSkipJavaScriptLinks(boolean value)
Specifies whether the presentation Hyperlinks with JavaScript calls will be skipped while saving. Read/write boolean. Default value is false.
Example: Presentation pres = new Presentation("demo.pptx"); try { HtmlOptions htmlOptions = new HtmlOptions(); htmlOptions.setSkipJavaScriptLinks(true); pres.save("result_without_JavaScript_links.html", SaveFormat.Html, htmlOptions); } finally { if (pres != null) pres.dispose(); }
When the option value is true, the Hyperlinks with JavaScript calls will be ignored.
When the option value is false, the all Hyperlinks will be saved.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |