Ejemplo n.º 1
0
        public void AddItem(string AKey, PdfObject AValue)
        {
            PdfDictionaryElement FItem;
            PdfVirtualObject     FTmpObject;

            RemoveItem(AKey);
            if (AValue.ObjectType == PdfObjectType.DirectObject)
            {
                FItem = new PdfDictionaryElement(AKey, AValue);
            }
            else
            {
                FTmpObject = new PdfVirtualObject(AValue.ObjectNumber);
                FItem      = new PdfDictionaryElement(AKey, FTmpObject);
            }
            FArray.Add(FItem);
        }
Ejemplo n.º 2
0
        public void AddItem(PdfObject AItem)
        {
            PdfVirtualObject TmpObject;

            if (FArray.IndexOf(AItem) >= 0)
            {
                return;
            }
            if (AItem.ObjectType == PdfObjectType.DirectObject)
            {
                FArray.Add(AItem);
            }
            else
            {
                TmpObject = new PdfVirtualObject(AItem.ObjectNumber);
                FArray.Add(TmpObject);
            }
        }