public final class TextEditOptions extends TextOptions
Descubes options of text edit operations.
| Modifier and Type | Class and Description |
|---|---|
static class |
TextEditOptions.ClippingPathsProcessingMode
Clipping path processing modes
|
static class |
TextEditOptions.FontReplace
Font replacement behavior.
|
static class |
TextEditOptions.LanguageTransformation
Language transformation modes
|
static class |
TextEditOptions.NoCharacterAction
Action to perform if font does not contain required character
|
| Constructor and Description |
|---|
TextEditOptions()
Initializes new instance of the
TextEditOptions object with default options. |
TextEditOptions(boolean allowLanguageTransformation)
Initializes new instance of the
TextEditOptions object for the specified language
transformation permission. |
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(TextEditOptions.NoCharacterAction noCharacterBehavior)
Initializes new instance of the
TextEditOptions object for the specified no-character
behavior mode. |
TextEditOptions(com.aspose.pdf.TextEditOptions.TextRearrangement option)
Initializes new instance of the
TextEditOptions object for the specified FontReplace
behavior mode. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAllowLanguageTransformation()
Gets value that permits usage of language transformation during adding or editing of text.
|
TextEditOptions.ClippingPathsProcessingMode |
getClippingPathsProcessing()
Gets mode for processing clipping path of the edited text.
|
TextEditOptions.FontReplace |
getFontReplaceBehavior()
Gets mode that defines behavior for fonts replacement scenarios.
|
TextEditOptions.LanguageTransformation |
getLanguageTransformationBehavior()
Gets mode that defines behavior for language transformation scenarios.
|
TextEditOptions.NoCharacterAction |
getNoCharacterBehavior()
Gets mode that defines behavior in case fonts don't contain requested characters.
|
Font |
getReplacementFont()
Gets or sets font used for replacing if user font does not contain required character
|
boolean |
getToAttemptGetUnderlineFromSource()
Gets or sets value that permits searching for text underlining on the page of source
document.
|
void |
setAllowLanguageTransformation(boolean value)
Sets value that permits usage of language transformation during adding or editing of text.
|
void |
setClippingPathsProcessing(TextEditOptions.ClippingPathsProcessingMode value)
Gets mode for processing clipping path of the edited text.
|
void |
setFontReplaceBehavior(TextEditOptions.FontReplace value)
Sets mode that defines behavior for fonts replacement scenarios.
|
void |
setLanguageTransformationBehavior(TextEditOptions.LanguageTransformation value)
Sets mode that defines behavior for language transformation scenarios.
|
void |
setNoCharacterBehavior(TextEditOptions.NoCharacterAction value)
Sets mode that defines behavior in case fonts don't contain requested characters.
|
void |
setReplacementFont(Font value)
Gets or sets font used for replacing if user font does not contain required character
|
void |
setToAttemptGetUnderlineFromSource(boolean value)
Gets or sets value that permits searching for text underlining on the page of source
document.
|
public TextEditOptions()
Initializes new instance of the TextEditOptions object with default options.
NoCharacterAction.UseStandardFont
LanguageTransformation.Default
public TextEditOptions(TextEditOptions.NoCharacterAction noCharacterBehavior)
Initializes new instance of the TextEditOptions object for the specified no-character
behavior mode.
noCharacterBehavior - No-character behavior mode object.TextEditOptions.NoCharacterActionpublic TextEditOptions(com.aspose.pdf.TextEditOptions.TextRearrangement option)
Initializes new instance of the TextEditOptions object for the specified FontReplace
behavior mode.
option - value for FontReplaceTextRearrangementpublic TextEditOptions(TextEditOptions.FontReplace option)
Initializes new instance of the TextEditOptions object for the specified FontReplace
behavior mode.
option - FontReplaceTextEditOptions.FontReplacepublic TextEditOptions(TextEditOptions.LanguageTransformation option)
Initializes new instance of the TextEditOptions object for the specified LanguageTransformation
behavior mode.
option - LanguageTransformationTextEditOptions.LanguageTransformationpublic TextEditOptions(boolean allowLanguageTransformation)
Initializes new instance of the TextEditOptions object for the specified language
transformation permission.
allowLanguageTransformation - Allows language transformation if set to true.public final Font getReplacementFont()
Gets or sets font used for replacing if user font does not contain required character
public final void setReplacementFont(Font value)
Gets or sets font used for replacing if user font does not contain required character
value - Font instancepublic TextEditOptions.NoCharacterAction getNoCharacterBehavior()
Gets mode that defines behavior in case fonts don't contain requested characters.
TextEditOptions.NoCharacterActionpublic void setNoCharacterBehavior(TextEditOptions.NoCharacterAction value)
Sets mode that defines behavior in case fonts don't contain requested characters.
value - NoCharacterAction valueTextEditOptions.NoCharacterActionpublic TextEditOptions.FontReplace getFontReplaceBehavior()
TextEditOptions.FontReplacepublic void setFontReplaceBehavior(TextEditOptions.FontReplace value)
value - FontReplace valueTextEditOptions.FontReplacepublic 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.
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.
value - boolean valuepublic TextEditOptions.LanguageTransformation getLanguageTransformationBehavior()
Gets mode that defines behavior for language transformation scenarios.
TextEditOptions.LanguageTransformationpublic void setLanguageTransformationBehavior(TextEditOptions.LanguageTransformation value)
Sets mode that defines behavior for language transformation scenarios.
value - LanguageTransformation valueTextEditOptions.LanguageTransformationpublic final TextEditOptions.ClippingPathsProcessingMode getClippingPathsProcessing()
Gets mode for processing clipping path of the edited text.
public final void setClippingPathsProcessing(TextEditOptions.ClippingPathsProcessingMode value)
Gets mode for processing clipping path of the edited text.
value - ClippingPathsProcessingMode elementpublic 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.
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.
value - boolean valueCopyright © 2025 Aspose. All Rights Reserved.