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.NoCharacterAction
public TextEditOptions(com.aspose.pdf.TextEditOptions.TextRearrangement option)
Initializes new instance of the TextEditOptions
object for the specified FontReplace
behavior mode.
option
- value for FontReplaceTextRearrangement
public TextEditOptions(TextEditOptions.FontReplace option)
Initializes new instance of the TextEditOptions
object for the specified FontReplace
behavior mode.
option
- FontReplaceTextEditOptions.FontReplace
public TextEditOptions(TextEditOptions.LanguageTransformation option)
Initializes new instance of the TextEditOptions
object for the specified LanguageTransformation
behavior mode.
option
- LanguageTransformationTextEditOptions.LanguageTransformation
public 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.NoCharacterAction
public void setNoCharacterBehavior(TextEditOptions.NoCharacterAction value)
Sets mode that defines behavior in case fonts don't contain requested characters.
value
- NoCharacterAction valueTextEditOptions.NoCharacterAction
public TextEditOptions.FontReplace getFontReplaceBehavior()
TextEditOptions.FontReplace
public void setFontReplaceBehavior(TextEditOptions.FontReplace value)
value
- FontReplace valueTextEditOptions.FontReplace
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.
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.LanguageTransformation
public void setLanguageTransformationBehavior(TextEditOptions.LanguageTransformation value)
Sets mode that defines behavior for language transformation scenarios.
value
- LanguageTransformation valueTextEditOptions.LanguageTransformation
public 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 © 2023 Aspose. All Rights Reserved.