public class MarkdownSaveOptions extends TxtSaveOptionsBase
SaveFormat.MARKDOWN format.
To learn more, visit the Specify Save Options documentation article.
| Constructor and Description |
|---|
MarkdownSaveOptions()
Initializes a new instance of this class that can be used to save a document in the
SaveFormat.MARKDOWN format. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getExportImagesAsBase64()
Specifies whether images are saved in Base64 format to the output file.
|
IImageSavingCallback |
getImageSavingCallback()
Allows to control how images are saved when a document is saved to
SaveFormat.MARKDOWN format. |
java.lang.String |
getImagesFolder()
Specifies the physical folder where images are saved when exporting a document to the
SaveFormat.MARKDOWN format. |
int |
getSaveFormat()
Specifies the format in which the document will be saved if this save options object is used.
|
int |
getTableContentAlignment()
Gets a value that specifies how to align contents in tables when exporting into the
SaveFormat.MARKDOWN format. |
void |
setExportImagesAsBase64(boolean value)
Specifies whether images are saved in Base64 format to the output file.
|
void |
setImageSavingCallback(IImageSavingCallback value)
Allows to control how images are saved when a document is saved to
SaveFormat.MARKDOWN format. |
void |
setImagesFolder(java.lang.String value)
Specifies the physical folder where images are saved when exporting a document to the
SaveFormat.MARKDOWN format. |
void |
setSaveFormat(int value)
Specifies the format in which the document will be saved if this save options object is used.
|
void |
setTableContentAlignment(int value)
Sets a value that specifies how to align contents in tables when exporting into the
SaveFormat.MARKDOWN format. |
getEncoding, getExportHeadersFootersMode, getForcePageBreaks, getParagraphBreak, setEncoding, setExportHeadersFootersMode, setForcePageBreaks, setParagraphBreakcreateSaveOptions, 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 MarkdownSaveOptions()
SaveFormat.MARKDOWN format.public int getSaveFormat()
SaveFormat.MARKDOWN.getSaveFormat in class SaveOptionsint value. The returned value is one of SaveFormat constants.public void setSaveFormat(int value)
SaveFormat.MARKDOWN.setSaveFormat in class SaveOptionsvalue - The corresponding int value. The value must be one of SaveFormat constants.public int getTableContentAlignment()
SaveFormat.MARKDOWN format. The default value is TableContentAlignment.AUTO.SaveFormat.MARKDOWN format. The returned value is one of TableContentAlignment constants.public void setTableContentAlignment(int value)
SaveFormat.MARKDOWN format. The default value is TableContentAlignment.AUTO.value - A value that specifies how to align contents in tables when exporting into the SaveFormat.MARKDOWN format. The value must be one of TableContentAlignment constants.public java.lang.String getImagesFolder()
SaveFormat.MARKDOWN format. Default is an empty string.
When you save a Document in SaveFormat.MARKDOWN format, Aspose.Words needs to save all images embedded in the document as standalone files. getImagesFolder() / setImagesFolder(java.lang.String) allows you to specify where the images will be saved.
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 getImagesFolder() / setImagesFolder(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 getImagesFolder() / setImagesFolder(java.lang.String) property.
If the folder specified by getImagesFolder() / setImagesFolder(java.lang.String) doesn't exist, it will be created automatically.
String value.public void setImagesFolder(java.lang.String value)
SaveFormat.MARKDOWN format. Default is an empty string.
When you save a Document in SaveFormat.MARKDOWN format, Aspose.Words needs to save all images embedded in the document as standalone files. getImagesFolder() / setImagesFolder(java.lang.String) allows you to specify where the images will be saved.
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 getImagesFolder() / setImagesFolder(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 getImagesFolder() / setImagesFolder(java.lang.String) property.
If the folder specified by getImagesFolder() / setImagesFolder(java.lang.String) doesn't exist, it will be created automatically.
value - The corresponding String value.public IImageSavingCallback getImageSavingCallback()
SaveFormat.MARKDOWN format.IImageSavingCallback value.public void setImageSavingCallback(IImageSavingCallback value)
SaveFormat.MARKDOWN format.value - The corresponding IImageSavingCallback value.public boolean getExportImagesAsBase64()
false.
When this property is set to true images data are exported directly into the img elements and separate files are not created.
boolean value.public void setExportImagesAsBase64(boolean value)
false.
When this property is set to true images data are exported directly into the img elements and separate files are not created.
value - The corresponding boolean value.