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 : ISaveOptionsInheritance
Derived
HtmlOptions , PdfOptions , RenderingOptions , SVGOptions , TiffOptions
Implements
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
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
ProgressCallback
Represents a callback object for saving progress updates in percentage. See Aspose.Slides.IProgressCallback.
public IProgressCallback ProgressCallback { get; set; }Property Value
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
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; }