Class LinkAnnotationValidator
java.lang.Object
org.apache.pdfbox.preflight.annotation.AnnotationValidator
org.apache.pdfbox.preflight.annotation.LinkAnnotationValidator
Validation class for the LinkAnnotation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PDAnnotationLink
PDFBox object which wraps the annotation dictionaryFields inherited from class org.apache.pdfbox.preflight.annotation.AnnotationValidator
annotDictionary, ctx, pdAnnot
-
Constructor Summary
ConstructorsConstructorDescriptionLinkAnnotationValidator
(PreflightContext ctx, COSDictionary annotDictionary) -
Method Summary
Methods inherited from class org.apache.pdfbox.preflight.annotation.AnnotationValidator
checkActions, checkAP, checkCA, checkColors, checkFlags, checkMandatoryFields, checkPopup, checkSpecificMandatoryFields, searchRGBProfile, setFactory
-
Field Details
-
pdLink
PDFBox object which wraps the annotation dictionary
-
-
Constructor Details
-
LinkAnnotationValidator
-
-
Method Details
-
validate
In addition of the AnnotationValidator.validate() method, this method executes the checkDest method.- Overrides:
validate
in classAnnotationValidator
- Returns:
- true if validation succeed, false otherwise.
- Throws:
ValidationException
- See Also:
-
checkDest
protected boolean checkDest()Check if the Dest element is authorized according to the A entry- Returns:
- if the Dest element is authorized according to the A entry.
-