Class SVGOptions

Class SVGOptions

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

Represents an SVG options.

[ComVisible(true)]
[ClassInterface(ClassInterfaceType.None)]
[Guid("3c6c5045-d90d-42c6-9271-9928d9dcfbab")]
public sealed class SVGOptions : SaveOptions, ISVGOptions, ISaveOptions

Inheritance

object SaveOptions SVGOptions

Implements

ISVGOptions , ISaveOptions

Inherited Members

SaveOptions.WarningCallback , SaveOptions.ProgressCallback , SaveOptions.DefaultRegularFont , SaveOptions.GradientStyle , SaveOptions.SkipJavaScriptLinks

Constructors

SVGOptions()

Initializes a new instance of the SVGOptions class.

public SVGOptions()

SVGOptions(ILinkEmbedController)

Initializes a new instance of the SVGOptions class specifying the link embedding controller object.

public SVGOptions(ILinkEmbedController linkEmbedController)

Parameters

linkEmbedController ILinkEmbedController

The link embedding controller reference.

Remarks

Link embedding controller is a delegate object that is responsible for making decisions if resources (such as images) need to be embedded or referenced as external resources.

See Also

ILinkEmbedController

Properties

Default

Returns default settings. Read-only Aspose.Slides.Export.SVGOptions.

public static SVGOptions Default { get; }

Property Value

SVGOptions

DeletePicturesCroppedAreas

A boolean flag indicates if the cropped parts remain as part of the document. If true the cropped parts will removed, if false they will be serialized in the document (which can possible lead to a larger file)

public bool DeletePicturesCroppedAreas { get; set; }

Property Value

bool

Disable3DText

Determines whether the 3D text is disabled in SVG. Read/write System.Boolean.

public bool Disable3DText { get; set; }

Property Value

bool

DisableFontLigatures

Gets or sets a value indicating whether text is rendered without using ligatures. When set to true, ligatures will be disabled in the rendered output. By default, this property is set to false.

public bool DisableFontLigatures { get; set; }

Property Value

bool

Examples

Example:

using (Presentation pres = new Presentation("pres.pptx"))
            {
                SVGOptions options = new SVFOptions
                {
                    DisableFontLigatures = true // Disable ligatures in text rendering
                };

                using (FileStream fileStream = new FileStream("slide-0.svg", FileMode.Create, FileAccess.Write))
                {
                    pres.Slides[0].WriteAsSvg(fileStream);   
                }
            }

DisableGradientSplit

Disables splitting FromCornerX and FromCenter gradients. Read/write System.Boolean.

public bool DisableGradientSplit { get; set; }

Property Value

bool

DisableLineEndCropping

SVG 1.1 lacks ability to define insets for markers. Aspose.Slides SVG writing engine has workaround for that problem: it crops end of line with arrow, so, line doesn’t overlap markers. This option switches off such behavior. Read/write System.Boolean.

public bool DisableLineEndCropping { get; set; }

Property Value

bool

ExternalFontsHandling

Determines a way of handling externally loaded fonts. Read/write Aspose.Slides.Export.SvgExternalFontsHandling.

public SvgExternalFontsHandling ExternalFontsHandling { get; set; }

Property Value

SvgExternalFontsHandling

InkOptions

Provides options that control the look of Ink objects in exported document. Read-only Aspose.Slides.Export.IInkOptions

public IInkOptions InkOptions { get; }

Property Value

IInkOptions

JpegQuality

Determines JPEG encoding quality. Read/write System.Int32.

public int JpegQuality { get; set; }

Property Value

int

MetafileRasterizationDpi

Returns or sets the lower resolution limit for metafile rasterization. Read/write System.Int32.

public int MetafileRasterizationDpi { get; set; }

Property Value

int

PicturesCompression

Represents the pictures compression level

public PicturesCompression PicturesCompression { get; set; }

Property Value

PicturesCompression

ShapeFormattingController

Returns and sets a callback interface which allows user to control shape conversion. Read/write Aspose.Slides.Export.ISvgShapeFormattingController.

public ISvgShapeFormattingController ShapeFormattingController { get; set; }

Property Value

ISvgShapeFormattingController

Simple

Returns settings for simpliest and smallest SVG file generation. Read-only Aspose.Slides.Export.SVGOptions.

public static SVGOptions Simple { get; }

Property Value

SVGOptions

UseFrameRotation

Determines whether to perform the specified rotation of the shape when rendering or not. Read/write System.Boolean. Default value is true.

public bool UseFrameRotation { get; set; }

Property Value

bool

UseFrameSize

Determines whether the text frame will be included in a rendering area or not. Read/write System.Boolean. Default value is false.

public bool UseFrameSize { get; set; }

Property Value

bool

VectorizeText

Determines whether the text on a slide will be saved as graphics. Read/write System.Boolean.

public bool VectorizeText { get; set; }

Property Value

bool

WYSIWYG

Returns settings for most accurate SVG file generation. Read-only Aspose.Slides.Export.SVGOptions.

public static SVGOptions WYSIWYG { get; }

Property Value

SVGOptions