Package com.itextpdf.pdfua.checkers
Class PdfUA2Checker
java.lang.Object
com.itextpdf.pdfua.checkers.PdfUAChecker
com.itextpdf.pdfua.checkers.PdfUA2Checker
- All Implemented Interfaces:
-
IValidationChecker
The class defines the requirements of the PDF/UA-2 standard and contains method implementations from the abstract
PdfUAChecker class.
The specification implemented by this class is ISO 14289-2.
-
Constructor Summary
ConstructorsConstructorDescriptionPdfUA2Checker(PdfDocument pdfDocument) CreatesPdfUA2Checkerinstance with PDF document which will be validated against PDF/UA-2 standard. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckMetadata(PdfCatalog catalog) Checks that theCatalogdictionary of a conforming file contains theMetadatakey whose value is a metadata stream as defined in ISO 32000-2:2020.booleanisPdfObjectReadyToFlush(PdfObject object) IsPdfObjectready to flush.voidvalidate(IValidationContext context) Validate the providedIValidationContext.Methods inherited from class com.itextpdf.pdfua.checkers.PdfUAChecker
warnOnPageFlush
-
Constructor Details
-
PdfUA2Checker
CreatesPdfUA2Checkerinstance with PDF document which will be validated against PDF/UA-2 standard.- Parameters:
-
pdfDocument- the document to validate
-
-
Method Details
-
validate
Description copied from interface:IValidationCheckerValidate the providedIValidationContext.- Parameters:
-
context- theIValidationContextto validate
-
isPdfObjectReadyToFlush
Description copied from interface:IValidationCheckerIsPdfObjectready to flush.- Parameters:
-
object- the pdf object to check - Returns:
-
trueif the object is ready to flush,falseotherwise
-
checkMetadata
Checks that theCatalogdictionary of a conforming file contains theMetadatakey whose value is a metadata stream as defined in ISO 32000-2:2020. Also checks that the value ofpdfuaid:partis 2 for conforming PDF files and validates requiredpdfuaid:revvalue.Checks that the
Metadatastream as specified in ISO 32000-2:2020, 14.3 in the document catalog dictionary includes adc: titleentry reflecting the title of the document.- Parameters:
-
catalog-PdfCatalogdocument catalog dictionary
-