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. |
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 |