Interface ISaveOptions

Interface ISaveOptions

Namespace: Aspose.Slides.Export
Assembly: Aspose.Slides.dll (25.12.0)

Options that control how a presentation is saved.

[ComVisible(true)]
[Guid("dcc148b8-faf1-4cdf-9515-f0bd457fd456")]
public interface ISaveOptions

Properties

DefaultRegularFont

Returns or sets font used in case source font is not found. Read-write System.String.

string DefaultRegularFont { get; set; }

Property Value

string

Examples

using (Presentation pres = new Presentation("SomePresentation.pptx"))
{
	HtmlOptions htmlOpts = new HtmlOptions();
	htmlOpts.DefaultRegularFont = "Arial Black";
	pres.Save(@"SomePresentation-out-ArialBlack.html", SaveFormat.Html, htmlOpts);
	htmlOpts.DefaultRegularFont = "Lucida Console";
	pres.Save(@"Somepresentation-out-LucidaConsole.html", SaveFormat.Html, htmlOpts);

	PdfOptions pdfOpts = new PdfOptions();
	pdfOpts.DefaultRegularFont = "Arial Black";
	pres.Save(@"SomePresentation-out-ArialBlack.pdf", SaveFormat.Pdf, pdfOpts);
}

GradientStyle

Returns or sets the visual style of the gradient. Read/write Aspose.Slides.GradientStyle.

GradientStyle GradientStyle { get; set; }

Property Value

GradientStyle

ProgressCallback

Represents a callback object for saving progress updates in percentage. See Aspose.Slides.IProgressCallback.

IProgressCallback ProgressCallback { get; set; }

Property Value

IProgressCallback

SkipJavaScriptLinks

Specifies whether to skip hyperlinks with JavaScript calls when saving the presentation. Read/write System.Boolean. The default value is false.

bool SkipJavaScriptLinks { get; set; }

Property Value

bool

Examples

Example:

using (Presentation pres = new Presentation("demo.pptx"))
           {
               pres.Save("result_without_JavaScript_links.html", SaveFormat.Html, new HtmlOptions()
               {
                   SkipJavaScriptLinks = true
               });
           }

Remarks

When this property is set to true, hyperlinks with JavaScript calls will be ignored while saving.

When this property is set to false, all hyperlinks will be saved.

WarningCallback

Returns or sets an object which receives warnings and decides whether loading process will continue or will be aborted. Read/write Aspose.Slides.Warnings.IWarningCallback.

IWarningCallback WarningCallback { get; set; }

Property Value

IWarningCallback