Example #1
0
 public PdfArray(PdfObject [] items)
 {
     list = new PdfObject[ items.Length ];
     maxElements = items.Length;
     foreach(PdfObject pdfO in items) {
         this.Add(pdfO);
     }
 }
Example #2
0
 public void Insert(int index, PdfObject item)
 {
     ((IList)this).Insert(index, item);
 }
Example #3
0
 public void Remove(PdfObject item)
 {
     ((IList)this).Remove(item);
 }
Example #4
0
 public int IndexOf(PdfObject item)
 {
     return ((IList)this).IndexOf(item);
 }
Example #5
0
 public bool Contains(PdfObject item)
 {
     return ((IList)this).Contains(item);
 }
Example #6
0
 public int Add(PdfObject item)
 {
     return ((IList)this).Add(item);
 }
Example #7
0
        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);
        }
Example #8
0
 public void Add(PdfName key, PdfObject value)
 {
     ((IDictionary)this).Add(key, value);
 }