TextSaveOptions

Inheritance: java.lang.Object

All Implemented Interfaces: com.groupdocs.editor.options.ISaveOptions

public final class TextSaveOptions implements ISaveOptions

Allows to specify custom options for generating and saving plain text (TXT) documents

Constructors

Constructor Description
TextSaveOptions()

Methods

Method Description
getEncoding() Character encoding of the text document, which will be applied for its saving
setEncoding(Charset value) Character encoding of the text document, which will be applied for its saving
getAddBidiMarks() Specifies whether to add bi-directional marks before each BiDi run when exporting in plain text format.
setAddBidiMarks(boolean value) Specifies whether to add bi-directional marks before each BiDi run when exporting in plain text format
getPreserveTableLayout() Specifies whether the program should attempt to preserve layout of tables when saving in the plain text format.
setPreserveTableLayout(boolean value) Specifies whether the program should attempt to preserve layout of tables when saving in the plain text format.

TextSaveOptions()

public TextSaveOptions()

getEncoding()

public final Charset getEncoding()

Character encoding of the text document, which will be applied for its saving

Returns: java.nio.charset.Charset -

setEncoding(Charset value)

public final void setEncoding(Charset value)

Character encoding of the text document, which will be applied for its saving

Parameters:

Parameter Type Description
value java.nio.charset.Charset

getAddBidiMarks()

public final boolean getAddBidiMarks()

Specifies whether to add bi-directional marks before each BiDi run when exporting in plain text format. Default is ‘false’ \u2014 do not add BiDi marks.

Returns: boolean -

setAddBidiMarks(boolean value)

public final void setAddBidiMarks(boolean value)

Specifies whether to add bi-directional marks before each BiDi run when exporting in plain text format

Parameters:

Parameter Type Description
value boolean

getPreserveTableLayout()

public final boolean getPreserveTableLayout()

Specifies whether the program should attempt to preserve layout of tables when saving in the plain text format. The default value is false.

Returns: boolean -

setPreserveTableLayout(boolean value)

public final void setPreserveTableLayout(boolean value)

Specifies whether the program should attempt to preserve layout of tables when saving in the plain text format. The default value is false.

Parameters:

Parameter Type Description
value boolean