Package com.itextpdf.kernel.font
Enum PdfFontFactory.EmbeddingStrategy
java.lang.Object
java.lang.Enum<PdfFontFactory.EmbeddingStrategy>
com.itextpdf.kernel.font.PdfFontFactory.EmbeddingStrategy
- All Implemented Interfaces:
-
Serializable
,Comparable<PdfFontFactory.EmbeddingStrategy>
,java.lang.constant.Constable
- Enclosing class:
- PdfFontFactory
Enum values for font embedding strategies.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionForce embedding fonts.Force not embedding fonts.Embedding fonts if possible.Not embedding fonts if possible. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static PdfFontFactory.EmbeddingStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FORCE_EMBEDDED
Force embedding fonts. It expected to get an exception if the font cannot be embedded. -
FORCE_NOT_EMBEDDED
Force not embedding fonts. It is expected to get an exception if the font cannot be not embedded. -
PREFER_EMBEDDED
Embedding fonts if possible. -
PREFER_NOT_EMBEDDED
Not embedding fonts if possible.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
-
IllegalArgumentException
- if this enum type has no constant with the specified name -
NullPointerException
- if the argument is null
-