to_string method

to_string(save_format)

Exports the content of the node into a string in the specified format.

def to_string(self, save_format: aspose.words.SaveFormat):
    ...
ParameterTypeDescription
save_formatSaveFormat

Returns

The content of the node in the specified format.

to_string(save_options)

Exports the content of the node into a string using the specified save options.

def to_string(self, save_options: aspose.words.saving.SaveOptions):
    ...
ParameterTypeDescription
save_optionsSaveOptionsSpecifies the options that control how the node is saved.

Returns

The content of the node in the specified format.

See Also