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

public Class LinkAnnotationValidator

extends AnnotationValidator
Class Inheritance
Static Imports
org.apache.pdfbox.preflight.PreflightConstants.ERROR_ANNOT_FORBIDDEN_DEST, .PreflightConstants.ERROR_ANNOT_INVALID_DEST, .PreflightConfiguration.DESTINATION_PROCESS

Validation class for the LinkAnnotation

Field Summary

Modifier and TypeField and Description
protected PDAnnotationLink
pdLink

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:

if the Dest element is authorized according to the A entry.
checkDest
()

Check if the Dest element is authorized according to the A entry

public boolean
validate()

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

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

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

Field Detail

Constructor Detail

LinkAnnotationValidatorback to summary
public LinkAnnotationValidator(PreflightContext ctx, COSDictionary annotDictionary)

Method Detail

checkDestback to summary
protected boolean checkDest()

Check if the Dest element is authorized according to the A entry

Returns:boolean

if the Dest element is authorized according to the A entry.

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

Returns:boolean

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

true if validation succeed, false otherwise.

Annotations
@Override
See Also
AnnotationValidator#validate()