com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class TextEditOptions



  • public final class TextEditOptions
    extends TextOptions

    Descubes options of text edit operations.

    • Constructor Detail

      • TextEditOptions

        public TextEditOptions()

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

      • TextEditOptions

        public TextEditOptions(int noCharacterBehavior)

        Initializes new instance of the TextEditOptions object for the specified no-character behavior mode. Please init fontReplaceBehavior by using setFontReplaceBehavior(int)

        Parameters:
        noCharacterBehavior - No-character behavior mode object.
        See Also:
        TextEditOptions.NoCharacterAction
      • TextEditOptions

        public TextEditOptions(int option,
                               Class type)

        Initializes new instance of the TextEditOptions object for the specified no-character behavior mode. Please init fontReplaceBehavior by using setFontReplaceBehavior(int)

        Parameters:
        option - value for one from the following classes: NoCharacterAction, LanguageTransformation, FontReplace,
        type - class of the option
        See Also:
        TextEditOptions.NoCharacterAction
      • TextEditOptions

        public TextEditOptions(boolean allowLanguageTransformation)

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

        Parameters:
        allowLanguageTransformation - Allows language transformation if set to true.
    • Method Detail

      • getReplacementFont

        public final Font getReplacementFont()

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

        Returns:
        Font instance
      • setReplacementFont

        public final void setReplacementFont(Font value)

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

        Parameters:
        value - Font instance
      • getNoCharacterBehavior

        public int getNoCharacterBehavior()

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

        Returns:
        NoCharacterAction value
        See Also:
        TextEditOptions.NoCharacterAction
      • setNoCharacterBehavior

        public void setNoCharacterBehavior(int value)

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

        Parameters:
        value - NoCharacterAction value
        See Also:
        TextEditOptions.NoCharacterAction
      • getFontReplaceBehavior

        public int getFontReplaceBehavior()
        Gets mode that defines behavior for fonts replacement scenarios.
        Returns:
        FontReplace value
        See Also:
        TextEditOptions.FontReplace
      • setFontReplaceBehavior

        public void setFontReplaceBehavior(int value)
        Sets mode that defines behavior for fonts replacement scenarios.
        Parameters:
        value - FontReplace value
        See Also:
        TextEditOptions.FontReplace
      • 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 value
      • setAllowLanguageTransformation

        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:
        value - boolean value
      • getLanguageTransformationBehavior

        public int getLanguageTransformationBehavior()

        Gets mode that defines behavior for language transformation scenarios.

        Returns:
        LanguageTransformation value
        See Also:
        TextEditOptions.LanguageTransformation
      • setLanguageTransformationBehavior

        public void setLanguageTransformationBehavior(int value)

        Sets mode that defines behavior for language transformation scenarios.

        Parameters:
        value - LanguageTransformation value
        See Also:
        TextEditOptions.LanguageTransformation
      • getClippingPathsProcessing

        public final int getClippingPathsProcessing()

        Gets mode for processing clipping path of the edited text.

        Returns:
        ClippingPathsProcessingMode element
      • setClippingPathsProcessing

        public final void setClippingPathsProcessing(int value)

        Gets mode for processing clipping path of the edited text.

        Parameters:
        value - 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 value
      • setToAttemptGetUnderlineFromSource

        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:
        value - boolean value