SVGOptions

Inheritance: java.lang.Object, com.aspose.slides.SaveOptions

All Implemented Interfaces: com.aspose.slides.ISVGOptions, java.lang.Cloneable

public final class SVGOptions extends SaveOptions implements ISVGOptions, Cloneable

Represents an SVG options.

Constructors

ConstructorDescription
SVGOptions()Initializes a new instance of the SVGOptions class.
SVGOptions(ILinkEmbedController linkEmbedController)Initializes a new instance of the SVGOptions class specifying the link embedding controller object.

Methods

MethodDescription
getInkOptions()Provides options that control the look of Ink objects in exported document.
getUseFrameSize()Determines whether the text frame will be included in a rendering area or not.
setUseFrameSize(boolean value)Determines whether the text frame will be included in a rendering area or not.
getUseFrameRotation()Determines whether to perform the specified rotation of the shape when rendering or not.
setUseFrameRotation(boolean value)Determines whether to perform the specified rotation of the shape when rendering or not.
getVectorizeText()Determines whether the text on a slide will be saved as graphics.
setVectorizeText(boolean value)Determines whether the text on a slide will be saved as graphics.
getMetafileRasterizationDpi()Returns or sets the lower resolution limit for metafile rasterization.
setMetafileRasterizationDpi(int value)Returns or sets the lower resolution limit for metafile rasterization.
getDisable3DText()Determines whether the 3D text is disabled in SVG.
setDisable3DText(boolean value)Determines whether the 3D text is disabled in SVG.
getDisableGradientSplit()Disables splitting FromCornerX and FromCenter gradients.
setDisableGradientSplit(boolean value)Disables splitting FromCornerX and FromCenter gradients.
getDisableLineEndCropping()SVG 1.1 lacks ability to define insets for markers.
setDisableLineEndCropping(boolean value)SVG 1.1 lacks ability to define insets for markers.
getDefault()Returns default settings.
getSimple()Returns settings for simpliest and smallest SVG file generation.
getWYSIWYG()Returns settings for most accurate SVG file generation.
getJpegQuality()Determines JPEG encoding quality.
setJpegQuality(int value)Determines JPEG encoding quality.
getShapeFormattingController()Returns and sets a callback interface which allows user to control shape conversion.
setShapeFormattingController(ISvgShapeFormattingController value)Returns and sets a callback interface which allows user to control shape conversion.
getPicturesCompression()Represents the pictures compression level
setPicturesCompression(int value)Represents the pictures compression level
getDeletePicturesCroppedAreas()A boolean flag indicates if the cropped parts remain as part of the document.
setDeletePicturesCroppedAreas(boolean value)A boolean flag indicates if the cropped parts remain as part of the document.
getExternalFontsHandling()Determines a way of handling externally loaded fonts.
setExternalFontsHandling(int value)Determines a way of handling externally loaded fonts.

SVGOptions()

public SVGOptions()

Initializes a new instance of the SVGOptions class.

SVGOptions(ILinkEmbedController linkEmbedController)

public SVGOptions(ILinkEmbedController linkEmbedController)

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

Parameters:

ParameterTypeDescription
linkEmbedControllerILinkEmbedControllerThe link embedding controller reference.

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

getInkOptions()

public final IInkOptions getInkOptions()

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

Returns: IInkOptions

getUseFrameSize()

public final boolean getUseFrameSize()

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

Returns: boolean

setUseFrameSize(boolean value)

public final void setUseFrameSize(boolean value)

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

Parameters:

ParameterTypeDescription
valueboolean

getUseFrameRotation()

public final boolean getUseFrameRotation()

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

Returns: boolean

setUseFrameRotation(boolean value)

public final void setUseFrameRotation(boolean value)

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

Parameters:

ParameterTypeDescription
valueboolean

getVectorizeText()

public final boolean getVectorizeText()

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

Returns: boolean

setVectorizeText(boolean value)

public final void setVectorizeText(boolean value)

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

Parameters:

ParameterTypeDescription
valueboolean

getMetafileRasterizationDpi()

public final int getMetafileRasterizationDpi()

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

Returns: int

setMetafileRasterizationDpi(int value)

public final void setMetafileRasterizationDpi(int value)

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

Parameters:

ParameterTypeDescription
valueint

getDisable3DText()

public final boolean getDisable3DText()

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

Returns: boolean

setDisable3DText(boolean value)

public final void setDisable3DText(boolean value)

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

Parameters:

ParameterTypeDescription
valueboolean

getDisableGradientSplit()

public final boolean getDisableGradientSplit()

Disables splitting FromCornerX and FromCenter gradients. Read/write boolean.

Returns: boolean

setDisableGradientSplit(boolean value)

public final void setDisableGradientSplit(boolean value)

Disables splitting FromCornerX and FromCenter gradients. Read/write boolean.

Parameters:

ParameterTypeDescription
valueboolean

getDisableLineEndCropping()

public final boolean getDisableLineEndCropping()

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

Returns: boolean

setDisableLineEndCropping(boolean value)

public final void setDisableLineEndCropping(boolean value)

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

Parameters:

ParameterTypeDescription
valueboolean

getDefault()

public static SVGOptions getDefault()

Returns default settings. Read-only SVGOptions.

Returns: SVGOptions

getSimple()

public static SVGOptions getSimple()

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

Returns: SVGOptions

getWYSIWYG()

public static SVGOptions getWYSIWYG()

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

Returns: SVGOptions

getJpegQuality()

public final int getJpegQuality()

Determines JPEG encoding quality. Read/write int.

Returns: int

setJpegQuality(int value)

public final void setJpegQuality(int value)

Determines JPEG encoding quality. Read/write int.

Parameters:

ParameterTypeDescription
valueint

getShapeFormattingController()

public final ISvgShapeFormattingController getShapeFormattingController()

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

Returns: ISvgShapeFormattingController

setShapeFormattingController(ISvgShapeFormattingController value)

public final void setShapeFormattingController(ISvgShapeFormattingController value)

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

Parameters:

ParameterTypeDescription
valueISvgShapeFormattingController

getPicturesCompression()

public final int getPicturesCompression()

Represents the pictures compression level

Returns: int

setPicturesCompression(int value)

public final void setPicturesCompression(int value)

Represents the pictures compression level

Parameters:

ParameterTypeDescription
valueint

getDeletePicturesCroppedAreas()

public final boolean getDeletePicturesCroppedAreas()

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)

Returns: boolean

setDeletePicturesCroppedAreas(boolean value)

public final void setDeletePicturesCroppedAreas(boolean value)

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)

Parameters:

ParameterTypeDescription
valueboolean

getExternalFontsHandling()

public final int getExternalFontsHandling()

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

Returns: int

setExternalFontsHandling(int value)

public final void setExternalFontsHandling(int value)

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

Parameters:

ParameterTypeDescription
valueint