Beispiel #1
0
        public ArrayObject Add(BaseObject obj)
        {
            if (obj is IndirectObject)
                obj = new IndirectReferenceObject(((IndirectObject)obj).Reference);

            _objects.Add(obj);
            return this;
        }
Beispiel #2
0
 public PrintString(BaseObject value)
 {
     Value = value;
 }
 public NextlineWithOffset(BaseObject x, BaseObject y)
 {
     _x = x;
     _y = y;
 }
Beispiel #4
0
 public SetFontCommand(BaseObject name, BaseObject size)
 {
     FontName = name;
     FontSize = size;
 }
Beispiel #5
0
        private bool WriteObject(BaseObject obj)
        {
            if (obj == null)
                return false;

            bool found = WriteObject(obj as IntegerNumberObject)
                || WriteObject(obj as RealNumberObject)
                || WriteObject(obj as StringObject)
                || WriteObject(obj as ArrayObject)
                || WriteObject(obj as DictionaryObject)
                || WriteObject(obj as IndirectReferenceObject)
                || WriteObject(obj as IndirectObject)
                || WriteObject(obj as NameObject)
                || WriteObject(obj as StreamObject);

            if (!found) {
                Console.WriteLine("!ERR - COULD NOT FIND {0}", obj.GetType().FullName);
            }

            return found;
        }
Beispiel #6
0
 PdfOutput Write(BaseObject obj)
 {
     WriteObject(obj);
     return this;
 }
Beispiel #7
0
 public PrintString(BaseObject value)
 {
     Value = value;
 }