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(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(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

      • 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
      • getToAttemptGetUnderlineFromSource

        public boolean getToAttemptGetUnderlineFromSource()

        Gets or sets value that permits searching for text underlining on the page of source document. false - text underlining that may present in source document will be ignored (default value). true - searching for text underlining will be performed in the source document. It may dramatically decrease performance of text editing operations. It also may effect on page graphical elements those look like underlining.

        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. false - text underlining that may present in source document will be ignored (default value). true - searching for text underlining will be performed in the source document. It may dramatically decrease performance of text editing operations. It also may effect on page graphical elements those look like underlining.

        Parameters:
        value - boolean value