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

public abstract Class SquareCircleAnnotationValidator

extends AnnotationValidator
Class Inheritance
Known Direct Subclasses
org.apache.pdfbox.preflight.annotation.CircleAnnotationValidator, org.apache.pdfbox.preflight.annotation.SquareAnnotationValidator
Imports
org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationSquareCircle, org.apache.pdfbox.preflight.PreflightContext, .ValidationResult.ValidationError, org.apache.pdfbox.preflight.exception.ValidationException

Validation class for the Square/Circle Annotation

Field Summary

Modifier and TypeField and Description
protected PDAnnotationSquareCircle
pdSquareCircle

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:

the validation state of the IC field.
checkIColors
()

Return true if the IC field is present in the Annotation dictionary and if the RGB profile is used in the DestOutputProfile of the OutputIntent dictionary.

public boolean
validate()

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

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

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

Field Detail

pdSquareCircleback to summary
protected PDAnnotationSquareCircle pdSquareCircle

PDFBox object which wraps the annotation dictionary

Constructor Detail

SquareCircleAnnotationValidatorback to summary
public SquareCircleAnnotationValidator(PreflightContext ctx, PDAnnotationSquareCircle annotation)

Method Detail

checkIColorsback to summary
protected boolean checkIColors() throws ValidationException

Return true if the IC field is present in the Annotation dictionary and if the RGB profile is used in the DestOutputProfile of the OutputIntent dictionary.

Returns:boolean

the validation state of the IC field.

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 checkIColors method.

Returns:boolean

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

true if validation succeed, false otherwise.

Annotations
@Override
See Also
AnnotationValidator#validate()