Ejemplo n.º 1
0
        internal static PDFDictionary Copy(PDFDictionary dict)
        {
            PDFDictionary newDict = new PDFDictionary();
            PDFName       type    = dict["Type"] as PDFName;

            if (type != null)
            {
                newDict.AddItem("Type", type.Clone());
            }

            PDFNumber count = dict["Count"] as PDFNumber;

            if (count != null)
            {
                newDict.AddItem("Count", count.Clone());
            }

            PDFString title = dict["Title"] as PDFString;

            if (title != null)
            {
                newDict.AddItem("Title", title.Clone());
            }

            PDFArray c = dict["C"] as PDFArray;

            if (c != null)
            {
                newDict.AddItem("C", c.Clone());
            }

            PDFNumber f = dict["F"] as PDFNumber;

            if (f != null)
            {
                newDict.AddItem("F", f.Clone());
            }

            //First, Last, Parent, Prev, Next, SE - do not
            //Dest, A - need set after adding

            return(newDict);
        }