MarkdownSaveOptions

MarkdownSaveOptions class

Represents the save options for markdown.

class MarkdownSaveOptions extends SaveOptions;

Constructors

NameDescription
constructor()Creates options for saving markdown document
constructor(SaveOptions)Constructs from a parent object convertible to this.

Properties

PropertyTypeDescription
encodingEncodingTypeGets and sets the default encoding.
formatStrategyCellValueFormatStrategyGets and sets the format strategy when exporting the cell value as string.
lightCellsDataProviderLightCellsDataProviderThe Data provider to provide cells data for saving workbook in light mode.
lineSeparatorstringGets and sets the line separator.
tableHeaderTypeMarkdownTableHeaderTypeGets and sets how set the header of the table.
sheetSetSheetSetGets or sets the sheets to render. Default is all visible sheets in the workbook: Aspose.Cells.Rendering.SheetSet.Active.
imageOptionsImageOrPrintOptionsReadonly. Get the ImageOrPrintOptions object before exporting
exportImagesAsBase64booleanSpecifies whether images are saved in Base64 format to Markdown. The default value is true.
calculateFormulabooleanIndicates whether to calculate formulas before saving markdown file.
exportHyperlinkAsReferencebooleanExports hyperlink using reference definitions instead of inline format. The default value is false.
alignColumnPaddingstringIndicates whether column alignment is enabled for generated Markdown tables. When enabled, columns are aligned by padding cell content with the specified character(typically ’ ’ for spaces). Set to ‘\0’ to disable column alignment (default).
saveFormatSaveFormatReadonly. Gets the save file format.
clearDatabooleanMake the workbook empty after saving the file.
cachedFileFolderstringThe folder for temporary files that may be used as data cache.
validateMergedAreasbooleanIndicates whether validate merged cells before saving the file.
mergeAreasbooleanIndicates whether merge the areas of conditional formatting and validation before saving the file.
createDirectorybooleanIf true and the directory does not exist, the directory will be automatically created before saving the file.
sortNamesbooleanIndicates whether sorting defined names before saving file.
sortExternalNamesbooleanIndicates whether sorting external defined names before saving file.
refreshChartCachebooleanIndicates whether refreshing chart cache data
warningCallbackIWarningCallbackGets or sets warning callback.
checkExcelRestrictionbooleanWhether check restriction of excel file when user modify cells related objects. For example, excel does not allow inputting string value longer than 32K. When you input a value longer than 32K, it will be truncated.
updateSmartArtbooleanIndicates whether updating smart art setting. The default value is false.
encryptDocumentPropertiesbooleanIndicates whether encrypt document properties when saving as .xls file. The default value is true.

constructor()

Creates options for saving markdown document

constructor();

constructor(SaveOptions)

Constructs from a parent object convertible to this.

constructor(obj: SaveOptions);

Parameters:

ParameterTypeDescription
objSaveOptionsThe parent object.

encoding

Gets and sets the default encoding.

encoding : EncodingType;

formatStrategy

Gets and sets the format strategy when exporting the cell value as string.

formatStrategy : CellValueFormatStrategy;

lightCellsDataProvider

The Data provider to provide cells data for saving workbook in light mode.

lightCellsDataProvider : LightCellsDataProvider;

lineSeparator

Gets and sets the line separator.

lineSeparator : string;

tableHeaderType

Gets and sets how set the header of the table.

tableHeaderType : MarkdownTableHeaderType;

sheetSet

Gets or sets the sheets to render. Default is all visible sheets in the workbook: Aspose.Cells.Rendering.SheetSet.Active.

sheetSet : SheetSet;

Remarks

The set is ignored when it is used in SheetRender

imageOptions

Readonly. Get the ImageOrPrintOptions object before exporting

imageOptions : ImageOrPrintOptions;

exportImagesAsBase64

Specifies whether images are saved in Base64 format to Markdown. The default value is true.

exportImagesAsBase64 : boolean;

Remarks

When this property is set to true image data is exported directly on the img elements and separate files are not created.

calculateFormula

Indicates whether to calculate formulas before saving markdown file.

calculateFormula : boolean;

Remarks

The default value is false.

exportHyperlinkAsReference

Exports hyperlink using reference definitions instead of inline format. The default value is false.

exportHyperlinkAsReference : boolean;

alignColumnPadding

Indicates whether column alignment is enabled for generated Markdown tables. When enabled, columns are aligned by padding cell content with the specified character(typically ’ ’ for spaces). Set to ‘\0’ to disable column alignment (default).

alignColumnPadding : string;

saveFormat

Readonly. Gets the save file format.

saveFormat : SaveFormat;

clearData

Make the workbook empty after saving the file.

clearData : boolean;

cachedFileFolder

The folder for temporary files that may be used as data cache.

cachedFileFolder : string;

Remarks

If the folder has not been specified, the default value for it is CellsHelper.GetCacheFolder(). If its default value is null or empty, or has been specified as null or empty, then no cache file will be used when saving the workbook.

validateMergedAreas

Indicates whether validate merged cells before saving the file.

validateMergedAreas : boolean;

Remarks

The default value is false.

mergeAreas

Indicates whether merge the areas of conditional formatting and validation before saving the file.

mergeAreas : boolean;

Remarks

The default value is false.

createDirectory

If true and the directory does not exist, the directory will be automatically created before saving the file.

createDirectory : boolean;

Remarks

The default value is false.

sortNames

Indicates whether sorting defined names before saving file.

sortNames : boolean;

sortExternalNames

Indicates whether sorting external defined names before saving file.

sortExternalNames : boolean;

refreshChartCache

Indicates whether refreshing chart cache data

refreshChartCache : boolean;

warningCallback

Gets or sets warning callback.

warningCallback : IWarningCallback;

checkExcelRestriction

Whether check restriction of excel file when user modify cells related objects. For example, excel does not allow inputting string value longer than 32K. When you input a value longer than 32K, it will be truncated.

checkExcelRestriction : boolean;

updateSmartArt

Indicates whether updating smart art setting. The default value is false.

updateSmartArt : boolean;

Remarks

Only effects after calling Shape.GetResultOfSmartArt() method and the cached shapes exist in the template file.

encryptDocumentProperties

Indicates whether encrypt document properties when saving as .xls file. The default value is true.

encryptDocumentProperties : boolean;

Remarks

Only for .xls,xlsx,xlsb and xlsm file.