public abstract class SaveOptions extends java.lang.Object implements ISaveOptions
Abstract class with options that control how a presentation is saved.
Constructor and Description |
---|
SaveOptions() |
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 of 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 of sets an object which receives warnings and decides whether loading process will continue or will be aborted.
|
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
.
getWarningCallback
in interface ISaveOptions
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
.
setWarningCallback
in interface ISaveOptions
public final IProgressCallback getProgressCallback()
Represents a callback object for saving progress updates in percentage.
See IProgressCallback
.
getProgressCallback
in interface ISaveOptions
public final void setProgressCallback(IProgressCallback value)
Represents a callback object for saving progress updates in percentage.
See IProgressCallback
.
setProgressCallback
in interface ISaveOptions
public final 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(); }
getDefaultRegularFont
in interface ISaveOptions
public final 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(); }
setDefaultRegularFont
in interface ISaveOptions