internal static PDFDictionary Copy(PDFDictionary dict) { PDFDictionary newDict = new PDFDictionary(); PDFName type = dict["Type"] as PDFName; if (type != null) { newDict.AddItem("Type", type.Clone()); } PDFName s = dict["S"] as PDFName; if (s != null) { newDict.AddItem("S", s.Clone()); } PDFString p = dict["P"] as PDFString; if (p != null) { newDict.AddItem("P", p.Clone()); } PDFNumber st = dict["St"] as PDFNumber; if (st != null) { newDict.AddItem("St", st.Clone()); } return(newDict); }
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); }