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 newPdf20Checkerinstance to validate PDF document against PDF 2.0 standard. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisPdfObjectReadyToFlush(PdfObject object) IsPdfObjectready to flush.voidvalidate(IValidationContext validationContext) Validate the providedIValidationContext.
-
Constructor Details
-
Pdf20Checker
Creates newPdf20Checkerinstance to validate PDF document against PDF 2.0 standard.- Parameters:
-
pdfDocument-PdfDocumentto check
-
-
Method Details
-
validate
Description copied from interface:IValidationCheckerValidate the providedIValidationContext.- Specified by:
-
validatein interfaceIValidationChecker - Parameters:
-
validationContext- theIValidationContextto validate
-
isPdfObjectReadyToFlush
Description copied from interface:IValidationCheckerIsPdfObjectready to flush.- Specified by:
-
isPdfObjectReadyToFlushin interfaceIValidationChecker - Parameters:
-
object- the pdf object to check - Returns:
-
trueif the object is ready to flush,falseotherwise
-