Package com.itextpdf.pdfua.checkers
Class PdfUA1Checker
java.lang.Object
com.itextpdf.pdfua.checkers.PdfUA1Checker
- All Implemented Interfaces:
-
IValidationChecker
The class defines the requirements of the PDF/UA-1 standard.
The specification implemented by this class is ISO 14289-1
-
Constructor Summary
ConstructorDescriptionPdfUA1Checker
(PdfDocument pdfDocument) Creates PdfUA1Checker instance with PDF document which will be validated against PDF/UA-1 standard. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkFileSpec
(PdfDictionary fileSpec) Verify the conformity of the file specification dictionary.protected void
checkMetadata
(PdfCatalog catalog) void
validateDocument
(ValidationContext validationContext) Validate the providedValidationContext
.void
validateObject
(Object obj, IsoKey key, PdfResources resources, PdfStream contentStream, Object extra) Check the provided object for conformance.
-
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
-
validateDocument
Validate the providedValidationContext
.This method is called by the
PdfDocument.close()
to check for additional conformance requirements.- Specified by:
-
validateDocument
in interfaceIValidationChecker
- Parameters:
-
validationContext
- theValidationContext
to validate
-
validateObject
public void validateObject(Object obj, IsoKey key, PdfResources resources, PdfStream contentStream, Object extra) Check the provided object for conformance.This method is called by the
PdfDocument.checkIsoConformance(Object, IsoKey, PdfResources, PdfStream, Object)
to check for additional conformance requirements.- Specified by:
-
validateObject
in interfaceIValidationChecker
- Parameters:
-
obj
- the object to check -
key
- theIsoKey
of the object -
resources
- thePdfResources
of the object -
contentStream
- thePdfStream
of the object -
extra
- additional information
-
checkFileSpec
Verify the conformity of the file specification dictionary.- Parameters:
-
fileSpec
- thePdfDictionary
containing file specification to be checked
-
checkMetadata
-