Package com.itextpdf.kernel.validation
Class Pdf20Checker
java.lang.Object
com.itextpdf.kernel.validation.Pdf20Checker
- All Implemented Interfaces:
-
IValidationChecker
Class that will run through all necessary checks defined in the PDF 2.0 standard. The standard that is followed is the series of ISO 32000 specifications, starting from ISO 32000-2:2020.
-
Constructor Summary
ConstructorsConstructorDescriptionPdf20Checker
(PdfDocument pdfDocument) Creates newPdf20Checker
instance to validate PDF document against PDF 2.0 standard. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isPdfObjectReadyToFlush
(PdfObject object) IsPdfObject
ready to flush.void
validate
(IValidationContext validationContext) Validate the providedIValidationContext
.
-
Constructor Details
-
Pdf20Checker
Creates newPdf20Checker
instance to validate PDF document against PDF 2.0 standard.- Parameters:
-
pdfDocument
-PdfDocument
to check
-
-
Method Details
-
validate
Description copied from interface:IValidationChecker
Validate the providedIValidationContext
.- Specified by:
-
validate
in interfaceIValidationChecker
- Parameters:
-
validationContext
- theIValidationContext
to validate
-
isPdfObjectReadyToFlush
Description copied from interface:IValidationChecker
IsPdfObject
ready to flush.- Specified by:
-
isPdfObjectReadyToFlush
in interfaceIValidationChecker
- Parameters:
-
object
- the pdf object to check - Returns:
-
true
if the object is ready to flush,false
otherwise
-