public static enum PdfReader.StrictnessLevel extends Enum<PdfReader.StrictnessLevel>
| Enum Constant and Description |
|---|
CONSERVATIVE
The reading strictness level at which iText fails (throws an exception) in case of
contradiction with PDF specification, but still recovers from mild parsing errors
and ambiguities.
|
LENIENT
The reading strictness level at which iText tries to recover from parsing
errors if possible.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isStricter(PdfReader.StrictnessLevel compareWith)
Checks whether the current instance represents more strict reading level than
the provided one.
|
static PdfReader.StrictnessLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PdfReader.StrictnessLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PdfReader.StrictnessLevel CONSERVATIVE
public static final PdfReader.StrictnessLevel LENIENT
public static PdfReader.StrictnessLevel[] values()
for (PdfReader.StrictnessLevel c : PdfReader.StrictnessLevel.values()) System.out.println(c);
public static PdfReader.StrictnessLevel valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isStricter(PdfReader.StrictnessLevel compareWith)
null is less strict than any other value.compareWith - the PdfReader.StrictnessLevel to compare withtrue if the current level is stricter than the provided oneCopyright © 1998–2021 iText Group NV. All rights reserved.