public class PdfUA2Checker extends PdfUAChecker
PdfUAChecker class.
The specification implemented by this class is ISO 14289-2.
| Constructor and Description |
|---|
PdfUA2Checker(PdfDocument pdfDocument)
Creates
PdfUA2Checker instance with PDF document which will be validated against PDF/UA-2 standard. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkCatalog(PdfCatalog catalog)
Validates document catalog dictionary against PDF/UA-2 standard.
|
protected void |
checkFormFieldsAndAnnotations(PdfCatalog catalog)
Validates all annotations and form fields present in the document against PDF/UA-2 standard.
|
protected void |
checkMetadata(PdfCatalog catalog)
Checks that the
Catalog dictionary of a conforming file contains the Metadata key whose value is
a metadata stream as defined in ISO 32000-2:2020. |
protected void |
checkPdfObject(PdfObject obj)
Checks that the given PDF object and all its descendant objects recursively (if any) are compliant with PDF/UA-2
standard.
|
protected void |
checkStructureTreeRoot(PdfStructTreeRoot structTreeRoot)
Validates structure tree root dictionary against PDF/UA-2 standard.
|
protected TagTreeIterator |
createTagTreeIterator(PdfStructTreeRoot structTreeRoot)
Creates
TagTreeIterator responsible for validation of tag tree elements. |
protected PdfDocument |
getPdfDocument()
Gets the PDF document being validated.
|
protected PdfUAValidationContext |
getUAValidationContext()
Gets the PDF/UA validation context which contains common information and utilities used for PDF/UA validation.
|
boolean |
isPdfObjectReadyToFlush(PdfObject object) |
void |
validate(IValidationContext context) |
checkContentInCanvas, checkFonts, checkLang, checkLogicalStructureInBMC, checkText, checkViewerPreferences, warnOnPageFlushpublic PdfUA2Checker(PdfDocument pdfDocument)
PdfUA2Checker instance with PDF document which will be validated against PDF/UA-2 standard.pdfDocument - the document to validatepublic void validate(IValidationContext context)
public boolean isPdfObjectReadyToFlush(PdfObject object)
protected PdfUAValidationContext getUAValidationContext()
protected PdfDocument getPdfDocument()
protected void checkMetadata(PdfCatalog catalog)
Catalog dictionary of a conforming file contains the Metadata key whose value is
a metadata stream as defined in ISO 32000-2:2020. Also checks that the value of pdfuaid:part is 2 for
conforming PDF files and validates required pdfuaid:rev value.
Checks that the Metadata stream as specified in ISO 32000-2:2020, 14.3 in the document catalog dictionary
includes a dc: title entry reflecting the title of the document.
catalog - PdfCatalog document catalog dictionaryprotected void checkPdfObject(PdfObject obj)
obj - the PDF object to checkprotected void checkCatalog(PdfCatalog catalog)
catalog - PdfCatalog document catalog dictionary to checkprotected void checkFormFieldsAndAnnotations(PdfCatalog catalog)
catalog - PdfCatalog to check form fields present in the acroformprotected void checkStructureTreeRoot(PdfStructTreeRoot structTreeRoot)
Additionally, checks that within a given explicitly provided namespace, structure types are not role mapped to other structure types in the same namespace. In the StructTreeRoot RoleMap there is no explicitly provided namespace, that's why it is not checked.
structTreeRoot - PdfStructTreeRoot structure tree root dictionary to checkprotected TagTreeIterator createTagTreeIterator(PdfStructTreeRoot structTreeRoot)
TagTreeIterator responsible for validation of tag tree elements.structTreeRoot - PdfStructTreeRoot to be validatedTagTreeIterator responsible for validation of tag tree elementsCopyright © 1998–2026 Apryse Group NV. All rights reserved.