Package com.pdftools.ocr
Enum UnicodeSource
- java.lang.Object
-
- java.lang.Enum<UnicodeSource>
-
- com.pdftools.ocr.UnicodeSource
-
- All Implemented Interfaces:
Flag,java.io.Serializable,java.lang.Comparable<UnicodeSource>
public enum UnicodeSource extends java.lang.Enum<UnicodeSource> implements Flag
Flags specifying additional sources for Unicode mapping
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FALLBACK_ALL_PUAUse Unicodes from Private Use Areas (PUA) for all characters for which no better Unicode can be determined.INSTALLED_FONTIf on the system a font of the same name is installed, use Unicodes of matching glyphs.KNOWN_SYMBOLIC_PUAUse Unicodes from Private Use Areas (PUA) for all fonts that are known to be symbolic, e.g.
-
Field Summary
Fields Modifier and Type Field Description static java.util.EnumSet<UnicodeSource>NONEDo not use any additional sources.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UnicodeSourcevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static UnicodeSource[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
KNOWN_SYMBOLIC_PUA
public static final UnicodeSource KNOWN_SYMBOLIC_PUA
Use Unicodes from Private Use Areas (PUA) for all fonts that are known to be symbolic, e.g. "ZapfDingbats" or "Wingdings".
-
FALLBACK_ALL_PUA
public static final UnicodeSource FALLBACK_ALL_PUA
Use Unicodes from Private Use Areas (PUA) for all characters for which no better Unicode can be determined.
-
INSTALLED_FONT
public static final UnicodeSource INSTALLED_FONT
If on the system a font of the same name is installed, use Unicodes of matching glyphs.
-
-
Field Detail
-
NONE
public static final java.util.EnumSet<UnicodeSource> NONE
Do not use any additional sources. Only use ToUnicode information contained in the PDF document as described in the PDF Reference.
-
-
Method Detail
-
values
public static UnicodeSource[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (UnicodeSource c : UnicodeSource.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UnicodeSource valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-