public interface ISaveOptions
Options that control how a presentation is saved.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDefaultRegularFont()
Returns or sets font used in case source font is not found.
|
IProgressCallback |
getProgressCallback()
Represents a callback object for saving progress updates in percentage.
|
IWarningCallback |
getWarningCallback()
Returns or sets an object which receives warnings and decides whether loading process will continue or will be aborted.
|
void |
setDefaultRegularFont(java.lang.String value)
Returns or sets font used in case source font is not found.
|
void |
setProgressCallback(IProgressCallback value)
Represents a callback object for saving progress updates in percentage.
|
void |
setWarningCallback(IWarningCallback value)
Returns or sets an object which receives warnings and decides whether loading process will continue or will be aborted.
|
IWarningCallback getWarningCallback()
Returns or sets an object which receives warnings and decides whether loading process will continue or will be aborted.
Read/write IWarningCallback
.
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
.
IProgressCallback getProgressCallback()
Represents a callback object for saving progress updates in percentage.
See IProgressCallback
.
void setProgressCallback(IProgressCallback value)
Represents a callback object for saving progress updates in percentage.
See IProgressCallback
.
java.lang.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(); }
void setDefaultRegularFont(java.lang.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(); }