public PdfArray(PdfObject [] items) { list = new PdfObject[ items.Length ]; maxElements = items.Length; foreach(PdfObject pdfO in items) { this.Add(pdfO); } }
public void Insert(int index, PdfObject item) { ((IList)this).Insert(index, item); }
public void Remove(PdfObject item) { ((IList)this).Remove(item); }
public int IndexOf(PdfObject item) { return ((IList)this).IndexOf(item); }
public bool Contains(PdfObject item) { return ((IList)this).Contains(item); }
public int Add(PdfObject item) { return ((IList)this).Add(item); }
internal static void RegisterForOutput(PdfObject o) { // Check if the item is already registered in this document if(registeredObject.Contains(o)) throw new InvalidOperationException("Object already registered on this document"); if(o.IndirectReference.Id != -1) throw new InvalidOperationException("Object is already registered"); // Provide the object with a valid unique identifier and increment the id counter o.IndirectReference.Id = ++ids; // Add the object to the registered array registeredObject.Add(o); }
public void Add(PdfName key, PdfObject value) { ((IDictionary)this).Add(key, value); }