示例#1
0
        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);
        }
示例#2
0
        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());
            }
        }