public class WidgetAnnotationValidator extends AnnotationValidator
| Modifier and Type | Field and Description |
|---|---|
protected PDAnnotationWidget |
pdWidget
PDFBox object which wraps the annotation dictionary
|
annotDictionary, annotFact, cosDocument, ctx, pdAnnot| Constructor and Description |
|---|
WidgetAnnotationValidator(PreflightContext ctx,
COSDictionary annotDictionary) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkAAField()
The AA field is forbidden for the Widget annotation when the PDF is a PDF/A.
|
protected boolean |
checkMandatoryFields()
Checks if all mandatory fields of an annotation are present.
|
boolean |
validate()
In addition of the AnnotationValidator.validate() method, this method executes the the checkAAField method.
|
checkActions, checkAP, checkCA, checkColors, checkFlags, checkPopup, searchRGBProfile, setFactoryprotected PDAnnotationWidget pdWidget
public WidgetAnnotationValidator(PreflightContext ctx, COSDictionary annotDictionary)
public boolean validate()
throws ValidationException
validate in class AnnotationValidatorValidationExceptionorg.apache.padaf.preflight.annotation.AnnotationValidator#validate(java.util.List)protected boolean checkAAField()
protected boolean checkMandatoryFields()
AnnotationValidatorcheckMandatoryFields in class AnnotationValidatorCopyright © 2002–2019 The Apache Software Foundation. All rights reserved.