Package com.itextpdf.pdfua.checkers
Class PdfUA1Checker
java.lang.Object
com.itextpdf.pdfua.checkers.PdfUAChecker
com.itextpdf.pdfua.checkers.PdfUA1Checker
- All Implemented Interfaces:
-
IValidationChecker
The class defines the requirements of the PDF/UA-1 standard and contains method implementations from the abstract
PdfUAChecker class.
The specification implemented by this class is ISO 14289-1.
-
Constructor Summary
ConstructorsConstructorDescriptionPdfUA1Checker(PdfDocument pdfDocument) Creates PdfUA1Checker instance with PDF document which will be validated against PDF/UA-1 standard. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckFileSpec(PdfDictionary fileSpec) Verify the conformity of the file specification dictionary.protected voidcheckMetadata(PdfCatalog catalog) Checks that theCatalogdictionary of a conforming file (the version number of a file may be any value from 1.0 to 1.7) contains theMetadatakey whose value is a metadata stream.booleanisPdfObjectReadyToFlush(PdfObject object) IsPdfObjectready to flush.voidvalidate(IValidationContext context) Validate the providedIValidationContext.Methods inherited from class com.itextpdf.pdfua.checkers.PdfUAChecker
warnOnPageFlush
-
Constructor Details
-
PdfUA1Checker
Creates PdfUA1Checker instance with PDF document which will be validated against PDF/UA-1 standard.- Parameters:
-
pdfDocument- the document to validate
-
-
Method Details
-
validate
Validate the providedIValidationContext..- Parameters:
-
context- theIValidationContextto validate
-
isPdfObjectReadyToFlush
IsPdfObjectready to flush..- Parameters:
-
object- the pdf object to check - Returns:
-
trueif the object is ready to flush,falseotherwise
-
checkFileSpec
Verify the conformity of the file specification dictionary.- Parameters:
-
fileSpec- thePdfDictionarycontaining file specification to be checked
-
checkMetadata
Checks that theCatalogdictionary of a conforming file (the version number of a file may be any value from 1.0 to 1.7) contains theMetadatakey whose value is a metadata stream. Also checks that the value ofpdfuaid:partis 1 for conforming PDF files.Checks that the
Metadatastream in the document catalog dictionary includes adc:titleentry reflecting the title of the document.- Parameters:
-
catalog-PdfCatalogdocument catalog dictionary
-