Table of Contents

Class PdfReader.StrictnessLevel

Namespace
iText.Kernel.Pdf
Assembly
itext.kernel.dll

Enumeration representing the strictness level for reading.

public sealed class PdfReader.StrictnessLevel
Inheritance
PdfReader.StrictnessLevel
Inherited Members

Fields

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.

public static readonly PdfReader.StrictnessLevel CONSERVATIVE

Field Value

PdfReader.StrictnessLevel

LENIENT

The reading strictness level at which iText tries to recover from parsing errors if possible.

public static readonly PdfReader.StrictnessLevel LENIENT

Field Value

PdfReader.StrictnessLevel

Methods

IsStricter(StrictnessLevel)

Checks whether the current instance represents more strict reading level than the provided one.

public bool IsStricter(PdfReader.StrictnessLevel compareWith)

Parameters

compareWith PdfReader.StrictnessLevel

the PdfReader.StrictnessLevel to compare with

Returns

bool

true if the current level is stricter than the provided one

Remarks

Checks whether the current instance represents more strict reading level than the provided one. Note that the null is less strict than any other value.