protected boolean checkFlags() { // call common flags settings boolean result = super.checkFlags(); /* * For Text Annotation, this two flags should be set to avoid potential ambiguity between the annotation * dictionary and the reader behavior. */ result = result && this.pdAnnot.isNoRotate(); result = result && this.pdAnnot.isNoZoom(); if (!result) { ctx.addValidationError(new ValidationError(ERROR_ANNOT_NOT_RECOMMENDED_FLAG)); } return result; } }
@Override public boolean isNoZoom() { return annot != null && annot.isNoZoom(); }
@Override Object[][] getFlagBits() { PDAnnotation annotation = new PDAnnotation(annotDictionary) { }; return new Object[][]{ new Object[]{1, "Invisible", annotation.isInvisible()}, new Object[]{2, "Hidden", annotation.isHidden()}, new Object[]{3, "Print", annotation.isPrinted()}, new Object[]{4, "NoZoom", annotation.isNoZoom()}, new Object[]{5, "NoRotate", annotation.isNoRotate()}, new Object[]{6, "NoView", annotation.isNoView()}, new Object[]{7, "ReadOnly", annotation.isReadOnly()}, new Object[]{8, "Locked", annotation.isLocked()}, new Object[]{9, "ToggleNoView", annotation.isToggleNoView()}, new Object[]{10, "LockedContents", annotation.isLocked()} }; } }
protected boolean checkFlags() { // call common flags settings boolean result = super.checkFlags(); /* * For Text Annotation, this two flags should be set to avoid potential ambiguity between the annotation * dictionary and the reader behavior. */ result = result && this.pdAnnot.isNoRotate(); result = result && this.pdAnnot.isNoZoom(); if (!result) { ctx.addValidationError(new ValidationError(ERROR_ANNOT_NOT_RECOMMENDED_FLAG)); } return result; } }
protected boolean checkFlags() { // call common flags settings boolean result = super.checkFlags(); /* * For Text Annotation, this two flags should be set to avoid potential ambiguity between the annotation * dictionary and the reader behavior. */ result = result && this.pdAnnot.isNoRotate(); result = result && this.pdAnnot.isNoZoom(); if (!result) { ctx.addValidationError(new ValidationError(ERROR_ANNOT_NOT_RECOMMENDED_FLAG)); } return result; } }