@Override public boolean isLockedContents() { if (annot != null) { return (annot.getAnnotationFlags() & LOCKED_CONTENTS_FLAG) == LOCKED_CONTENTS_FLAG; } return false; }
public PBoxPDAnnot(PDAnnotation annot, PDResources pageResources, PDDocument document, PDFAFlavour flavour) { super(annot, ANNOTATION_TYPE); this.pageResources = pageResources; this.subtype = annot.getSubtype(); this.ap = getAP(annot); COSDictionary annotDict = annot.getCOSObject(); this.isFKeyPresent = annotDict.containsKey(COSName.F); this.annotationFlag = annot.getAnnotationFlags(); this.ca = PBoxPDAnnot.getCA(annot); this.nType = getN_type(annot); this.ft = PBoxPDAnnot.getFT(annot); this.width = PBoxPDAnnot.getWidth(annot); this.height = PBoxPDAnnot.getHeight(annot); this.document = document; this.flavour = flavour; }