TextEditOptions
Inheritance: java.lang.Object, com.aspose.pdf.TextOptions
public final class TextEditOptions extends TextOptions
Descubes options of text edit operations.
Constructors
Constructor | Description |
---|---|
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
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
noCharacterBehavior | NoCharacterAction | No-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:
Parameter | Type | Description |
---|---|---|
option | com.aspose.pdf.TextEditOptions.TextRearrangement | value 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:
Parameter | Type | Description |
---|---|---|
option | FontReplace | FontReplace |
TextEditOptions(TextEditOptions.LanguageTransformation option)
public TextEditOptions(TextEditOptions.LanguageTransformation option)
Initializes new instance of the TextEditOptions object for the specified LanguageTransformation behavior mode.
Parameters:
Parameter | Type | Description |
---|---|---|
option | LanguageTransformation | LanguageTransformation |
TextEditOptions(boolean allowLanguageTransformation)
public TextEditOptions(boolean allowLanguageTransformation)
Initializes new instance of the TextEditOptions object for the specified language transformation permission.
Parameters:
Parameter | Type | Description |
---|---|---|
allowLanguageTransformation | boolean | Allows 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:
Parameter | Type | Description |
---|---|---|
value | Font | Font 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:
Parameter | Type | Description |
---|---|---|
value | NoCharacterAction | NoCharacterAction 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:
Parameter | Type | Description |
---|---|---|
value | FontReplace | FontReplace 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:
Parameter | Type | Description |
---|---|---|
value | boolean | boolean 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:
Parameter | Type | Description |
---|---|---|
value | LanguageTransformation | LanguageTransformation 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:
Parameter | Type | Description |
---|---|---|
value | ClippingPathsProcessingMode | ClippingPathsProcessingMode 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:
Parameter | Type | Description |
---|---|---|
value | boolean | boolean value |