iText 8.0.4 API
iText.Kernel.Pdf.PdfReader.StrictnessLevel Class Reference

Enumeration representing the strictness level for reading. More...

Public Member Functions

bool  IsStricter (PdfReader.StrictnessLevel compareWith)
  Checks whether the current instance represents more strict reading level than the provided one. More...
 

Static Public Attributes

static readonly PdfReader.StrictnessLevel  CONSERVATIVE = new PdfReader.StrictnessLevel(5000)
  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. More...
 
static readonly PdfReader.StrictnessLevel  LENIENT = new PdfReader.StrictnessLevel(3000)
  The reading strictness level at which iText tries to recover from parsing errors if possible. More...
 

Detailed Description

Enumeration representing the strictness level for reading.

Member Function Documentation

◆ IsStricter()

bool iText.Kernel.Pdf.PdfReader.StrictnessLevel.IsStricter ( PdfReader.StrictnessLevel  compareWith )
inline

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

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.

Parameters
compareWith the StrictnessLevel to compare with
Returns

true if the current level is stricter than the provided one

Member Data Documentation

◆ CONSERVATIVE

readonly PdfReader.StrictnessLevel iText.Kernel.Pdf.PdfReader.StrictnessLevel.CONSERVATIVE = new PdfReader.StrictnessLevel(5000)
static

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

readonly PdfReader.StrictnessLevel iText.Kernel.Pdf.PdfReader.StrictnessLevel.LENIENT = new PdfReader.StrictnessLevel(3000)
static

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