Exemplo n.º 1
0
 public PageCollectionBuilder(Compositor compositor)
 {
     _compositor = compositor;
     _ref        = compositor.IndirectObject(_me = compositor.Dictionary("Pages")
                                                   .Set("Kids", _kids   = new ArrayObject())
                                                   .Set("Count", _count = new IntegerNumberObject())
                                             );
 }
Exemplo n.º 2
0
        private bool WriteObject(ArrayObject obj)
        {
            if (obj == null)
            {
                return(false);
            }

            Write("[ ");
            for (int i = 0; i < obj.Objects.Count; i++)
            {
                WriteObject(obj.Objects[i]);
                Write(" ");
            }
            Write("]");

            return(true);
        }
Exemplo n.º 3
0
        private bool WriteObject(ArrayObject obj)
        {
            if (obj == null)
                return false;

            Write("[ ");
            for (int i = 0; i < obj.Objects.Count; i++) {
                WriteObject(obj.Objects[i]);
                Write(" ");
            }
            Write("]");

            return true;
        }