Interface ISVGOptions

Interface ISVGOptions

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

Represents an SVG options.

[ComVisible(true)]
[Guid("2d9c9a99-9c45-4331-a02a-b5bd688fd924")]
public interface ISVGOptions : ISaveOptions

Implements

ISaveOptions

Properties

AsISaveOptions

Returns ISaveOptions interface. Read-only Aspose.Slides.Export.ISaveOptions.

ISaveOptions AsISaveOptions { get; }

Property Value

ISaveOptions

Remarks

For COM compatibility.

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) Read/write System.Boolean.

bool DeletePicturesCroppedAreas { get; set; }

Property Value

bool

Disable3DText

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

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.

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.

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.

bool DisableLineEndCropping { get; set; }

Property Value

bool

ExternalFontsHandling

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

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

IInkOptions InkOptions { get; }

Property Value

IInkOptions

JpegQuality

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

int JpegQuality { get; set; }

Property Value

int

MetafileRasterizationDpi

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

int MetafileRasterizationDpi { get; set; }

Property Value

int

PicturesCompression

Represents the pictures compression level Read/write Aspose.Slides.Export.ISVGOptions.PicturesCompression.

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.

ISvgShapeFormattingController ShapeFormattingController { get; set; }

Property Value

ISvgShapeFormattingController

UseFrameRotation

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

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.

bool UseFrameSize { get; set; }

Property Value

bool

VectorizeText

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

bool VectorizeText { get; set; }

Property Value

bool