public class SvgSaveOptions extends FixedPageSaveOptions
SaveFormat.SVG format.
To learn more, visit the Specify Save Options documentation article.
| Modifier and Type | Method and Description |
|---|---|
boolean |
getExportEmbeddedImages()
Specified whether images should be embedded into SVG document as base64.
|
boolean |
getFitToViewPort()
Specifies if the output SVG should fill the available viewport area (browser window or container).
|
IResourceSavingCallback |
getResourceSavingCallback()
Allows to control how resources (images) are saved when a document is exported to SVG format.
|
java.lang.String |
getResourcesFolder()
Specifies the physical folder where resources (images) are saved when exporting a document to Svg format.
|
java.lang.String |
getResourcesFolderAlias()
Specifies the name of the folder used to construct image URIs written into an SVG document.
|
int |
getSaveFormat()
Specifies the format in which the document will be saved if this save options object is used.
|
boolean |
getShowPageBorder()
Controls whether a border is added to the outline of the page.
|
int |
getTextOutputMode()
Gets a value determining how text should be rendered in SVG.
|
void |
setExportEmbeddedImages(boolean value)
Specified whether images should be embedded into SVG document as base64.
|
void |
setFitToViewPort(boolean value)
Specifies if the output SVG should fill the available viewport area (browser window or container).
|
void |
setResourceSavingCallback(IResourceSavingCallback value)
Allows to control how resources (images) are saved when a document is exported to SVG format.
|
void |
setResourcesFolder(java.lang.String value)
Specifies the physical folder where resources (images) are saved when exporting a document to Svg format.
|
void |
setResourcesFolderAlias(java.lang.String value)
Specifies the name of the folder used to construct image URIs written into an SVG document.
|
void |
setSaveFormat(int value)
Specifies the format in which the document will be saved if this save options object is used.
|
void |
setShowPageBorder(boolean value)
Controls whether a border is added to the outline of the page.
|
void |
setTextOutputMode(int value)
Sets a value determining how text should be rendered in SVG.
|
equals, getColorMode, getJpegQuality, getMetafileRenderingOptions, getNumeralFormat, getOptimizeOutput, getPageSavingCallback, getPageSet, setColorMode, setJpegQuality, setMetafileRenderingOptions, setNumeralFormat, setOptimizeOutput, setPageSavingCallback, setPageSetcreateSaveOptions, createSaveOptions, getAllowEmbeddingPostScriptFonts, getDefaultTemplate, getDml3DEffectsRenderingMode, getDmlEffectsRenderingMode, getDmlRenderingMode, getExportGeneratorName, getImlRenderingMode, getMemoryOptimization, getPrettyFormat, getProgressCallback, getTempFolder, getUpdateCreatedTimeProperty, getUpdateFields, getUpdateLastPrintedProperty, getUpdateLastSavedTimeProperty, getUpdateSdtContent, getUseAntiAliasing, getUseHighQualityRendering, setAllowEmbeddingPostScriptFonts, setDefaultTemplate, setDml3DEffectsRenderingMode, setDmlEffectsRenderingMode, setDmlRenderingMode, setExportGeneratorName, setImlRenderingMode, setMemoryOptimization, setPrettyFormat, setProgressCallback, setTempFolder, setUpdateCreatedTimeProperty, setUpdateFields, setUpdateLastPrintedProperty, setUpdateLastSavedTimeProperty, setUpdateSdtContent, setUseAntiAliasing, setUseHighQualityRenderingpublic int getSaveFormat()
SaveFormat.SVG.getSaveFormat in class SaveOptionsint value. The returned value is one of SaveFormat constants.public void setSaveFormat(int value)
SaveFormat.SVG.setSaveFormat in class SaveOptionsvalue - The corresponding int value. The value must be one of SaveFormat constants.public boolean getShowPageBorder()
true.boolean value.public void setShowPageBorder(boolean value)
true.value - The corresponding boolean value.public int getTextOutputMode()
Use this property to get or set the mode of how text inside a document should be rendered when saving in SVG format.
The default value is SvgTextOutputMode.USE_TARGET_MACHINE_FONTS.
SvgTextOutputMode constants.public void setTextOutputMode(int value)
Use this property to get or set the mode of how text inside a document should be rendered when saving in SVG format.
The default value is SvgTextOutputMode.USE_TARGET_MACHINE_FONTS.
value - A value determining how text should be rendered in SVG. The value must be one of SvgTextOutputMode constants.public java.lang.String getResourcesFolder()
null.
Has effect only if getExportEmbeddedImages() / setExportEmbeddedImages(boolean) property is false.
When you save a Document in SVG format, Aspose.Words needs to save all images embedded in the document as standalone files. getResourcesFolder() / setResourcesFolder(java.lang.String) allows you to specify where the images will be saved and getResourcesFolderAlias() / setResourcesFolderAlias(java.lang.String) allows to specify how the image URIs will be constructed.
If you save a document into a file and provide a file name, Aspose.Words, by default, saves the images in the same folder where the document file is saved. Use getResourcesFolder() / setResourcesFolder(java.lang.String) to override this behavior.
If you save a document into a stream, Aspose.Words does not have a folder where to save the images, but still needs to save the images somewhere. In this case, you need to specify an accessible folder in the getResourcesFolder() / setResourcesFolder(java.lang.String) property
String value.getResourcesFolderAlias(),
setResourcesFolderAlias(java.lang.String)public void setResourcesFolder(java.lang.String value)
null.
Has effect only if getExportEmbeddedImages() / setExportEmbeddedImages(boolean) property is false.
When you save a Document in SVG format, Aspose.Words needs to save all images embedded in the document as standalone files. getResourcesFolder() / setResourcesFolder(java.lang.String) allows you to specify where the images will be saved and getResourcesFolderAlias() / setResourcesFolderAlias(java.lang.String) allows to specify how the image URIs will be constructed.
If you save a document into a file and provide a file name, Aspose.Words, by default, saves the images in the same folder where the document file is saved. Use getResourcesFolder() / setResourcesFolder(java.lang.String) to override this behavior.
If you save a document into a stream, Aspose.Words does not have a folder where to save the images, but still needs to save the images somewhere. In this case, you need to specify an accessible folder in the getResourcesFolder() / setResourcesFolder(java.lang.String) property
value - The corresponding String value.getResourcesFolderAlias(),
setResourcesFolderAlias(java.lang.String)public java.lang.String getResourcesFolderAlias()
null.
When you save a Document in SVG format, Aspose.Words needs to save all images embedded in the document as standalone files. getResourcesFolder() / setResourcesFolder(java.lang.String) allows you to specify where the images will be saved and getResourcesFolderAlias() / setResourcesFolderAlias(java.lang.String) allows to specify how the image URIs will be constructed.
String value.getResourcesFolder(),
setResourcesFolder(java.lang.String)public void setResourcesFolderAlias(java.lang.String value)
null.
When you save a Document in SVG format, Aspose.Words needs to save all images embedded in the document as standalone files. getResourcesFolder() / setResourcesFolder(java.lang.String) allows you to specify where the images will be saved and getResourcesFolderAlias() / setResourcesFolderAlias(java.lang.String) allows to specify how the image URIs will be constructed.
value - The corresponding String value.getResourcesFolder(),
setResourcesFolder(java.lang.String)public boolean getExportEmbeddedImages()
boolean value.public void setExportEmbeddedImages(boolean value)
value - The corresponding boolean value.public boolean getFitToViewPort()
The default value is false.
boolean value.public void setFitToViewPort(boolean value)
The default value is false.
value - The corresponding boolean value.public IResourceSavingCallback getResourceSavingCallback()
IResourceSavingCallback value.public void setResourceSavingCallback(IResourceSavingCallback value)
value - The corresponding IResourceSavingCallback value.