Class SaveOptions

Class SaveOptions

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

Abstract class with options that control how a presentation is saved.

public abstract class SaveOptions : ISaveOptions

Inheritance

object SaveOptions

Derived

HtmlOptions , PdfOptions , RenderingOptions , SVGOptions , TiffOptions

Implements

ISaveOptions

Constructors

SaveOptions()

protected SaveOptions()

Properties

DefaultRegularFont

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

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

public GradientStyle GradientStyle { get; set; }

Property Value

GradientStyle

ProgressCallback

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

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

public 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 of sets an object which receives warnings and decides whether loading process will continue or will be aborted. Read/write Aspose.Slides.Warnings.IWarningCallback.

public IWarningCallback WarningCallback { get; set; }

Property Value

IWarningCallback