internal AnnotationCollections Clone(IDocumentEssential owner, Page page) { AnnotationCollections annots = new AnnotationCollections(owner, _page); annots._page = page; for (int i = 0; i < _annotations.Count; ++i) { annots.Add(_annotations[i]); } return(annots); }
private void loadAnnotations() { PDFArray annots = _dictionary["Annots"] as PDFArray; if (annots != null) { _annotations = new AnnotationCollections(annots, _owner, this); } else { _annotations = new AnnotationCollections(_owner, this); _dictionary.AddItem("Annots", _annotations.GetArray()); } }