public final class SVGOptions extends SaveOptions implements ISVGOptions, java.lang.Cloneable
Represents an SVG options.
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
static SVGOptions |
getDefault()
Returns default settings.
|
boolean |
getDeletePicturesCroppedAreas()
A boolean flag indicates if the cropped parts remain as part of the document.
|
boolean |
getDisable3DText()
Determines whether the 3D text is disabled in SVG.
|
boolean |
getDisableFontLigatures()
Gets or sets a value indicating whether text is rendered without using ligatures.
|
boolean |
getDisableGradientSplit()
Disables splitting FromCornerX and FromCenter gradients.
|
boolean |
getDisableLineEndCropping()
SVG 1.1 lacks ability to define insets for markers.
|
int |
getExternalFontsHandling()
Determines a way of handling externally loaded fonts.
|
IInkOptions |
getInkOptions()
Provides options that control the look of Ink objects in exported document.
|
int |
getJpegQuality()
Determines JPEG encoding quality.
|
int |
getMetafileRasterizationDpi()
Returns or sets the lower resolution limit for metafile rasterization.
|
int |
getPicturesCompression()
Represents the pictures compression level
|
ISvgShapeFormattingController |
getShapeFormattingController()
Returns and sets a callback interface which allows user to control shape conversion.
|
static SVGOptions |
getSimple()
Returns settings for simpliest and smallest SVG file generation.
|
boolean |
getUseFrameRotation()
Determines whether to perform the specified rotation of the shape when rendering or not.
|
boolean |
getUseFrameSize()
Determines whether the text frame will be included in a rendering area or not.
|
boolean |
getVectorizeText()
Determines whether the text on a slide will be saved as graphics.
|
static SVGOptions |
getWYSIWYG()
Returns settings for most accurate SVG file generation.
|
void |
setDeletePicturesCroppedAreas(boolean value)
A boolean flag indicates if the cropped parts remain as part of the document.
|
void |
setDisable3DText(boolean value)
Determines whether the 3D text is disabled in SVG.
|
void |
setDisableFontLigatures(boolean value)
Gets or sets a value indicating whether text is rendered without using ligatures.
|
void |
setDisableGradientSplit(boolean value)
Disables splitting FromCornerX and FromCenter gradients.
|
void |
setDisableLineEndCropping(boolean value)
SVG 1.1 lacks ability to define insets for markers.
|
void |
setExternalFontsHandling(int value)
Determines a way of handling externally loaded fonts.
|
void |
setJpegQuality(int value)
Determines JPEG encoding quality.
|
void |
setMetafileRasterizationDpi(int value)
Returns or sets the lower resolution limit for metafile rasterization.
|
void |
setPicturesCompression(int value)
Represents the pictures compression level
|
void |
setShapeFormattingController(ISvgShapeFormattingController value)
Returns and sets a callback interface which allows user to control shape conversion.
|
void |
setUseFrameRotation(boolean value)
Determines whether to perform the specified rotation of the shape when rendering or not.
|
void |
setUseFrameSize(boolean value)
Determines whether the text frame will be included in a rendering area or not.
|
void |
setVectorizeText(boolean value)
Determines whether the text on a slide will be saved as graphics.
|
getDefaultRegularFont, getGradientStyle, getProgressCallback, getSkipJavaScriptLinks, getWarningCallback, setDefaultRegularFont, setGradientStyle, setProgressCallback, setSkipJavaScriptLinks, setWarningCallbackequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefaultRegularFont, getGradientStyle, getProgressCallback, getSkipJavaScriptLinks, getWarningCallback, setDefaultRegularFont, setGradientStyle, setProgressCallback, setSkipJavaScriptLinks, setWarningCallbackpublic SVGOptions()
Initializes a new instance of the SVGOptions class.
public SVGOptions(ILinkEmbedController linkEmbedController)
Initializes a new instance of the SVGOptions class specifying the link embedding controller object.
linkEmbedController - The link embedding controller reference.
ILinkEmbedControllerpublic final IInkOptions getInkOptions()
Provides options that control the look of Ink objects in exported document.
Read-only IInkOptions
getInkOptions in interface ISVGOptionspublic final boolean getUseFrameSize()
Determines whether the text frame will be included in a rendering area or not.
Read/write boolean.
Default value is false.
getUseFrameSize in interface ISVGOptionspublic 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.
setUseFrameSize in interface ISVGOptionspublic final boolean getUseFrameRotation()
Determines whether to perform the specified rotation of the shape when rendering or not.
Read/write boolean.
Default value is true.
getUseFrameRotation in interface ISVGOptionspublic 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.
setUseFrameRotation in interface ISVGOptionspublic final boolean getVectorizeText()
Determines whether the text on a slide will be saved as graphics.
Read/write boolean.
getVectorizeText in interface ISVGOptionspublic final void setVectorizeText(boolean value)
Determines whether the text on a slide will be saved as graphics.
Read/write boolean.
setVectorizeText in interface ISVGOptionspublic final int getMetafileRasterizationDpi()
Returns or sets the lower resolution limit for metafile rasterization.
Read/write int.
getMetafileRasterizationDpi in interface ISVGOptionspublic final void setMetafileRasterizationDpi(int value)
Returns or sets the lower resolution limit for metafile rasterization.
Read/write int.
setMetafileRasterizationDpi in interface ISVGOptionspublic final boolean getDisable3DText()
Determines whether the 3D text is disabled in SVG.
Read/write boolean.
getDisable3DText in interface ISVGOptionspublic final void setDisable3DText(boolean value)
Determines whether the 3D text is disabled in SVG.
Read/write boolean.
setDisable3DText in interface ISVGOptionspublic final boolean getDisableGradientSplit()
Disables splitting FromCornerX and FromCenter gradients.
Read/write boolean.
getDisableGradientSplit in interface ISVGOptionspublic final void setDisableGradientSplit(boolean value)
Disables splitting FromCornerX and FromCenter gradients.
Read/write boolean.
setDisableGradientSplit in interface ISVGOptionspublic 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.
getDisableLineEndCropping in interface ISVGOptionspublic 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.
setDisableLineEndCropping in interface ISVGOptionspublic static SVGOptions getDefault()
Returns default settings.
Read-only SVGOptions.
public static SVGOptions getSimple()
Returns settings for simpliest and smallest SVG file generation.
Read-only SVGOptions.
public static SVGOptions getWYSIWYG()
Returns settings for most accurate SVG file generation.
Read-only SVGOptions.
public final int getJpegQuality()
Determines JPEG encoding quality.
Read/write int.
getJpegQuality in interface ISVGOptionspublic final void setJpegQuality(int value)
Determines JPEG encoding quality.
Read/write int.
setJpegQuality in interface ISVGOptionspublic final ISvgShapeFormattingController getShapeFormattingController()
Returns and sets a callback interface which allows user to control shape conversion.
Read/write ISvgShapeFormattingController.
getShapeFormattingController in interface ISVGOptionspublic final void setShapeFormattingController(ISvgShapeFormattingController value)
Returns and sets a callback interface which allows user to control shape conversion.
Read/write ISvgShapeFormattingController.
setShapeFormattingController in interface ISVGOptionspublic final int getPicturesCompression()
Represents the pictures compression level
getPicturesCompression in interface ISVGOptionspublic final void setPicturesCompression(int value)
Represents the pictures compression level
setPicturesCompression in interface ISVGOptionspublic 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)
getDeletePicturesCroppedAreas in interface ISVGOptionspublic 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)
setDeletePicturesCroppedAreas in interface ISVGOptionspublic final int getExternalFontsHandling()
Determines a way of handling externally loaded fonts.
Read/write SvgExternalFontsHandling.
getExternalFontsHandling in interface ISVGOptionspublic final void setExternalFontsHandling(int value)
Determines a way of handling externally loaded fonts.
Read/write SvgExternalFontsHandling.
setExternalFontsHandling in interface ISVGOptionspublic final boolean getDisableFontLigatures()
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.
Example:Presentation pres = new Presentation("pres.pptx"); try { SVGOptions options = new SVGOptions(); options.setDisableFontLigatures(true); FileOutputStream fileStream = new FileOutputStream("slide-0.svg"); pres.getSlides().get_Item(0).writeAsSvg(fileStream); } finally { if (pres != null) pres.dispose(); }
getDisableFontLigatures in interface ISVGOptionspublic final void setDisableFontLigatures(boolean value)
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.
Example:Presentation pres = new Presentation("pres.pptx"); try { SVGOptions options = new SVGOptions(); options.setDisableFontLigatures(true); FileOutputStream fileStream = new FileOutputStream("slide-0.svg"); pres.getSlides().get_Item(0).writeAsSvg(fileStream); } finally { if (pres != null) pres.dispose(); }
setDisableFontLigatures in interface ISVGOptionsCopyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.