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

ConstructorDescription
SaveOptions()

Methods

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

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:

ParameterTypeDescription
valueIWarningCallback

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:

ParameterTypeDescription
valueIProgressCallback

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:

ParameterTypeDescription
valuejava.lang.String