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, setFactory
protected PDAnnotationWidget pdWidget
public WidgetAnnotationValidator(PreflightContext ctx, COSDictionary annotDictionary)
public boolean validate() throws ValidationException
validate
in class AnnotationValidator
ValidationException
org.apache.padaf.preflight.annotation.AnnotationValidator#validate(java.util.List)
protected boolean checkAAField()
protected boolean checkMandatoryFields()
AnnotationValidator
checkMandatoryFields
in class AnnotationValidator
Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.