TextEditOptions

Inheritance: java.lang.Object, com.aspose.pdf.TextOptions

public final class TextEditOptions extends TextOptions

Descubes options of text edit operations.

Constructors

ConstructorDescription
TextEditOptions()Initializes new instance of the TextEditOptions object with default options.
TextEditOptions(TextEditOptions.NoCharacterAction noCharacterBehavior)Initializes new instance of the TextEditOptions object for the specified no-character behavior mode.
TextEditOptions(TextEditOptions.TextRearrangement option)Initializes new instance of the TextEditOptions object for the specified FontReplace behavior mode.
TextEditOptions(TextEditOptions.FontReplace option)Initializes new instance of the TextEditOptions object for the specified FontReplace behavior mode.
TextEditOptions(TextEditOptions.LanguageTransformation option)Initializes new instance of the TextEditOptions object for the specified LanguageTransformation behavior mode.
TextEditOptions(boolean allowLanguageTransformation)Initializes new instance of the TextEditOptions object for the specified language transformation permission.

Methods

MethodDescription
getReplacementFont()Gets or sets font used for replacing if user font does not contain required character
setReplacementFont(Font value)Gets or sets font used for replacing if user font does not contain required character
getNoCharacterBehavior()Gets mode that defines behavior in case fonts don’t contain requested characters.
setNoCharacterBehavior(TextEditOptions.NoCharacterAction value)Sets mode that defines behavior in case fonts don’t contain requested characters.
getFontReplaceBehavior()Gets mode that defines behavior for fonts replacement scenarios.
setFontReplaceBehavior(TextEditOptions.FontReplace value)Sets mode that defines behavior for fonts replacement scenarios.
getAllowLanguageTransformation()Gets value that permits usage of language transformation during adding or editing of text.
setAllowLanguageTransformation(boolean value)Sets value that permits usage of language transformation during adding or editing of text.
getLanguageTransformationBehavior()Gets mode that defines behavior for language transformation scenarios.
setLanguageTransformationBehavior(TextEditOptions.LanguageTransformation value)Sets mode that defines behavior for language transformation scenarios.
getClippingPathsProcessing()Gets mode for processing clipping path of the edited text.
setClippingPathsProcessing(TextEditOptions.ClippingPathsProcessingMode value)Gets mode for processing clipping path of the edited text.
getToAttemptGetUnderlineFromSource()Gets or sets value that permits searching for text underlining on the page of source document.
setToAttemptGetUnderlineFromSource(boolean value)Gets or sets value that permits searching for text underlining on the page of source document.

TextEditOptions()

public TextEditOptions()

Initializes new instance of the TextEditOptions object with default options. NoCharacterAction.UseStandardFont LanguageTransformation.Default

TextEditOptions(TextEditOptions.NoCharacterAction noCharacterBehavior)

public TextEditOptions(TextEditOptions.NoCharacterAction noCharacterBehavior)

Initializes new instance of the TextEditOptions object for the specified no-character behavior mode.

Parameters:

ParameterTypeDescription
noCharacterBehaviorNoCharacterActionNo-character behavior mode object.

TextEditOptions(TextEditOptions.TextRearrangement option)

public TextEditOptions(TextEditOptions.TextRearrangement option)

Initializes new instance of the TextEditOptions object for the specified FontReplace behavior mode.

Parameters:

ParameterTypeDescription
optioncom.aspose.pdf.TextEditOptions.TextRearrangementvalue for FontReplace

TextEditOptions(TextEditOptions.FontReplace option)

public TextEditOptions(TextEditOptions.FontReplace option)

Initializes new instance of the TextEditOptions object for the specified FontReplace behavior mode.

Parameters:

ParameterTypeDescription
optionFontReplaceFontReplace

TextEditOptions(TextEditOptions.LanguageTransformation option)

public TextEditOptions(TextEditOptions.LanguageTransformation option)

Initializes new instance of the TextEditOptions object for the specified LanguageTransformation behavior mode.

Parameters:

ParameterTypeDescription
optionLanguageTransformationLanguageTransformation

TextEditOptions(boolean allowLanguageTransformation)

public TextEditOptions(boolean allowLanguageTransformation)

Initializes new instance of the TextEditOptions object for the specified language transformation permission.

Parameters:

ParameterTypeDescription
allowLanguageTransformationbooleanAllows language transformation if set to true.

getReplacementFont()

public final Font getReplacementFont()

Gets or sets font used for replacing if user font does not contain required character

Returns: Font - Font instance

setReplacementFont(Font value)

public final void setReplacementFont(Font value)

Gets or sets font used for replacing if user font does not contain required character

Parameters:

ParameterTypeDescription
valueFontFont instance

getNoCharacterBehavior()

public TextEditOptions.NoCharacterAction getNoCharacterBehavior()

Gets mode that defines behavior in case fonts don’t contain requested characters.

Returns: NoCharacterAction - NoCharacterAction value

setNoCharacterBehavior(TextEditOptions.NoCharacterAction value)

public void setNoCharacterBehavior(TextEditOptions.NoCharacterAction value)

Sets mode that defines behavior in case fonts don’t contain requested characters.

Parameters:

ParameterTypeDescription
valueNoCharacterActionNoCharacterAction value

getFontReplaceBehavior()

public TextEditOptions.FontReplace getFontReplaceBehavior()

Gets mode that defines behavior for fonts replacement scenarios.

Returns: FontReplace - FontReplace value

setFontReplaceBehavior(TextEditOptions.FontReplace value)

public void setFontReplaceBehavior(TextEditOptions.FontReplace value)

Sets mode that defines behavior for fonts replacement scenarios.

Parameters:

ParameterTypeDescription
valueFontReplaceFontReplace value

getAllowLanguageTransformation()

public boolean getAllowLanguageTransformation()

Gets value that permits usage of language transformation during adding or editing of text. true - language transformation will be applied if necessary (default value). false - language transformation will NOT be applied.

Returns: boolean - boolean value

setAllowLanguageTransformation(boolean value)

public void setAllowLanguageTransformation(boolean value)

Sets value that permits usage of language transformation during adding or editing of text. true - language transformation will be applied if necessary (default value). false - language transformation will NOT be applied.

Parameters:

ParameterTypeDescription
valuebooleanboolean value

getLanguageTransformationBehavior()

public TextEditOptions.LanguageTransformation getLanguageTransformationBehavior()

Gets mode that defines behavior for language transformation scenarios.

Returns: LanguageTransformation - LanguageTransformation value

setLanguageTransformationBehavior(TextEditOptions.LanguageTransformation value)

public void setLanguageTransformationBehavior(TextEditOptions.LanguageTransformation value)

Sets mode that defines behavior for language transformation scenarios.

Parameters:

ParameterTypeDescription
valueLanguageTransformationLanguageTransformation value

getClippingPathsProcessing()

public final TextEditOptions.ClippingPathsProcessingMode getClippingPathsProcessing()

Gets mode for processing clipping path of the edited text.

Returns: ClippingPathsProcessingMode - ClippingPathsProcessingMode element

setClippingPathsProcessing(TextEditOptions.ClippingPathsProcessingMode value)

public final void setClippingPathsProcessing(TextEditOptions.ClippingPathsProcessingMode value)

Gets mode for processing clipping path of the edited text.

Parameters:

ParameterTypeDescription
valueClippingPathsProcessingModeClippingPathsProcessingMode element

getToAttemptGetUnderlineFromSource()

public boolean getToAttemptGetUnderlineFromSource()

Gets or sets value that permits searching for text underlining on the page of source document.

(Obsolete) Please use TextSearchOptions.SearchForTextRelatedGraphics instead this.

Returns: boolean - boolean value

setToAttemptGetUnderlineFromSource(boolean value)

public void setToAttemptGetUnderlineFromSource(boolean value)

Gets or sets value that permits searching for text underlining on the page of source document.

(Obsolete) Please use TextSearchOptions.SearchForTextRelatedGraphics instead this.

Parameters:

ParameterTypeDescription
valuebooleanboolean value