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

public Class LineAnnotationValidator

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

Validation class for the LineAnnotation

Field Summary

Modifier and TypeField and Description
protected PDAnnotationLine
pdLine

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 state of the IC field validation.
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.

protected boolean
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:
checkActionscheckAPcheckCAcheckColorscheckFlagscheckMandatoryFieldscheckPopupsearchRGBProfilesetFactory

Field Detail

pdLineback to summary
protected PDAnnotationLine pdLine

PDFBox object which wraps the annotation dictionary

Constructor Detail

LineAnnotationValidatorback to summary
public LineAnnotationValidator(PreflightContext ctx, COSDictionary annotDictionary)

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 state of the IC field validation.

checkSpecificMandatoryFieldsback to summary
protected boolean checkSpecificMandatoryFields()

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

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

Override this method to check the presence of specific fields

Returns:boolean

the presence of specific fields.

Annotations
@Override
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()