Top Description Fields Constructors Methods
org.apache.pdfbox.preflight.annotation

public Class WidgetAnnotationValidator

extends AnnotationValidator
Class Inheritance
Static Imports
org.apache.pdfbox.preflight.PreflightConstants.ERROR_ANNOT_FORBIDDEN_AA

Validation class for the Widget Annotation

Field Summary

Modifier and TypeField and Description
protected PDAnnotationWidget
pdWidget

PDFBox object which wraps the annotation dictionary

Inherited from org.apache.pdfbox.preflight.annotation.AnnotationValidator:
annotDictionaryctxpdAnnot

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected boolean

Returns:

false if the forbidden AA field is existing.
checkAAField
()

The AA field is forbidden for the Widget annotation when the PDF is a PDF/A.

public boolean
validate()

Overrides org.apache.pdfbox.preflight.annotation.AnnotationValidator.validate.

In addition of the AnnotationValidator.validate() method, this method executes the checkAAField method.

Inherited from org.apache.pdfbox.preflight.annotation.AnnotationValidator:
checkActionscheckAPcheckCAcheckColorscheckFlagscheckMandatoryFieldscheckPopupcheckSpecificMandatoryFieldssearchRGBProfilesetFactory

Field Detail

pdWidgetback to summary
protected PDAnnotationWidget pdWidget

PDFBox object which wraps the annotation dictionary

Constructor Detail

WidgetAnnotationValidatorback to summary
public WidgetAnnotationValidator(PreflightContext ctx, COSDictionary annotDictionary)

Method Detail

checkAAFieldback to summary
protected boolean checkAAField()

The AA field is forbidden for the Widget annotation when the PDF is a PDF/A. This method return false and update the errors list if this key is present. returns true otherwise

Returns:boolean

false if the forbidden AA field is existing.

validateback to summary
public boolean validate() throws ValidationException

Overrides org.apache.pdfbox.preflight.annotation.AnnotationValidator.validate.

In addition of the AnnotationValidator.validate() method, this method executes the checkAAField method.

Returns:boolean

Doc from org.apache.pdfbox.preflight.annotation.AnnotationValidator.validate.

true if validation succeed, false otherwise.

Annotations
@Override
See Also
AnnotationValidator#validate()