Package com.itextpdf.pdfua.wtpdf
Class WellTaggedPdfForReuseChecker
java.lang.Object
com.itextpdf.pdfua.checkers.PdfUAChecker
com.itextpdf.pdfua.checkers.PdfUA2Checker
com.itextpdf.pdfua.wtpdf.WellTaggedPdfForAccessibilityChecker
com.itextpdf.pdfua.wtpdf.WellTaggedPdfForReuseChecker
- All Implemented Interfaces:
-
IValidationChecker
WellTaggedPdfForReuseChecker class performs validation of a PDF document against WTPDF For Reuse standard.
-
Constructor Summary
ConstructorsConstructorDescriptionWellTaggedPdfForReuseChecker(PdfDocument pdfDocument) CreatesWellTaggedPdfForReuseCheckerinstance which will be validated against WTPDF For Reuse standard. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckCatalog(PdfCatalog catalog) Validates document catalog dictionary against PDF/UA-2 standard.protected voidcheckFormFieldsAndAnnotations(PdfCatalog catalog) Validates all annotations and form fields present in the document against PDF/UA-2 standard.protected 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.protected TagTreeIteratorcreateTagTreeIterator(PdfStructTreeRoot structTreeRoot) CreatesTagTreeIteratorresponsible for validation of tag tree elements.voidvalidate(IValidationContext context) Validate the providedIValidationContext.Methods inherited from class com.itextpdf.pdfua.checkers.PdfUA2Checker
checkPdfObject, checkStructureTreeRoot, getPdfDocument, getUAValidationContext, isPdfObjectReadyToFlushMethods inherited from class com.itextpdf.pdfua.checkers.PdfUAChecker
checkContentInCanvas, checkFonts, checkLang, checkLogicalStructureInBMC, checkText, checkViewerPreferences, warnOnPageFlush
-
Constructor Details
-
WellTaggedPdfForReuseChecker
CreatesWellTaggedPdfForReuseCheckerinstance which will be validated against WTPDF For Reuse standard.- Parameters:
-
pdfDocument- the document to validate
-
-
Method Details
-
validate
Description copied from interface:IValidationCheckerValidate the providedIValidationContext.- Specified by:
-
validatein interfaceIValidationChecker - Overrides:
-
validatein classPdfUA2Checker - Parameters:
-
context- theIValidationContextto validate
-
checkCatalog
Validates document catalog dictionary against PDF/UA-2 standard.- Overrides:
-
checkCatalogin classPdfUA2Checker - Parameters:
-
catalog-PdfCatalogdocument catalog dictionary to check
-
checkFormFieldsAndAnnotations
Validates all annotations and form fields present in the document against PDF/UA-2 standard.- Overrides:
-
checkFormFieldsAndAnnotationsin classPdfUA2Checker - Parameters:
-
catalog-PdfCatalogto check form fields present in the acroform
-
createTagTreeIterator
Description copied from class:PdfUA2CheckerCreatesTagTreeIteratorresponsible for validation of tag tree elements.- Overrides:
-
createTagTreeIteratorin classPdfUA2Checker - Parameters:
-
structTreeRoot-PdfStructTreeRootto be validated - Returns:
-
TagTreeIteratorresponsible for validation of tag tree elements
-
checkMetadata
Checks that theCatalogdictionary of a conforming file contains theMetadatakey whose value is a metadata stream as defined in ISO 32000-2:2020.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.- Overrides:
-
checkMetadatain classWellTaggedPdfForAccessibilityChecker - Parameters:
-
catalog-PdfCatalogdocument catalog dictionary
-