Enum Class WordAttributeFlags

java.lang.Object
java.lang.Enum<WordAttributeFlags>
com.datalogics.PDFL.WordAttributeFlags
All Implemented Interfaces:
Serializable, Comparable<WordAttributeFlags>, Constable

public enum WordAttributeFlags extends Enum<WordAttributeFlags>
Flags returned by Word::GetAttributes.
  • Enum Constant Details

    • HAS_NONALPHANUM

      public static final WordAttributeFlags HAS_NONALPHANUM
      The word contains a character outside the range of A-Z, a-Z, 0-9.
    • HAS_LETTER

      public static final WordAttributeFlags HAS_LETTER
      The word contains a character between A-Z or a-z.
    • HAS_UPPERCASE

      public static final WordAttributeFlags HAS_UPPERCASE
      The word contains a character between A-Z.
    • HAS_DIGIT

      public static final WordAttributeFlags HAS_DIGIT
      One or more characters in the word are digits.
    • HAS_PUNCTUATION

      public static final WordAttributeFlags HAS_PUNCTUATION
      One or more characters in the word are punctuation marks. Other flag bits can be checked to test whether the punctuation was at the beginning of the word, the end of the word, or elsewhere in the word.
    • HAS_HYPHEN

      public static final WordAttributeFlags HAS_HYPHEN
      There is a hyphen in the word.
    • HAS_SOFT_HYPHEN

      public static final WordAttributeFlags HAS_SOFT_HYPHEN
      There is a soft hyphen in the word.
    • HAS_LIGATURE

      public static final WordAttributeFlags HAS_LIGATURE
      The word contains a ligature.
    • HAS_LEADING_PUNCTUATION

      public static final WordAttributeFlags HAS_LEADING_PUNCTUATION
      The first character in the word is a punctuation mark.
    • HAS_TRAILING_PUNCTUATION

      public static final WordAttributeFlags HAS_TRAILING_PUNCTUATION
      The last character in the word is a punctuation mark.
    • HAS_UNMAPPED_CHARACTERS

      public static final WordAttributeFlags HAS_UNMAPPED_CHARACTERS
      One or more characters in the word cannot be represented in the output font encoding.
    • ADJACENT_TO_SPACE

      public static final WordAttributeFlags ADJACENT_TO_SPACE
      The character following the end of the word is a space (either an explicit space character encoded in a string, or one that appears implicitly because the drawing point was moved).
    • ROTATED

      public static final WordAttributeFlags ROTATED
      The writing direction of the word is not in a multiple of 90 degrees, or the bounding box of the text is skewed. This flag indicates that the quads of the word should be used to specify the highlight area correctly.
    • VERTICAL_FLOW

      public static final WordAttributeFlags VERTICAL_FLOW
      The writing direction of the word is either 90 or 180 degrees. This flag ignores the page rotation parameter of the page dictionary. Therefore, if the page is rotated 90 degrees, this flag will be set on each word that appears horizonally on the screen.
    • WORD_BREAK

      public static final WordAttributeFlags WORD_BREAK
    • LAST_WORD_ON_LINE

      public static final WordAttributeFlags LAST_WORD_ON_LINE
      The word is at the end of the current text line (for example, the word is followed by a line break). In tagged PDF documents, this flag is set according to the tags in the document. To determine visual line breaks in tagged PDF, use IsLastWordInRegion instead.
    • FRONT_TAB

      public static final WordAttributeFlags FRONT_TAB
      Insert a tab character before this word
    • ENCODING_WARNING

      public static final WordAttributeFlags ENCODING_WARNING
      Unreliable encoding conversion happened in this word. Check the encoding flags of each character for detail.
    • REVERSE_DIRECTION

      public static final WordAttributeFlags REVERSE_DIRECTION
      The writing direction is right-left or top-down
    • WORD_IS_UNICODE

      public static final WordAttributeFlags WORD_IS_UNICODE
      The text is in Unicode format.
    • EXT_CHAR_OFFSETS

      public static final WordAttributeFlags EXT_CHAR_OFFSETS
      The word has extended character offset information.
  • Method Details

    • values

      public static WordAttributeFlags[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static WordAttributeFlags valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null