Example #1
0
        public void Add(string key, EmbeddedFile value)
        {
            PdfArray itemPairs = BaseDataObject;

            // New entry.
            itemPairs.Add(new PdfTextString(key));
            itemPairs.Add(value.BaseObject);
        }
Example #2
0
 public bool TryGetValue(string key, out EmbeddedFile value)
 {
     value = this[key];
     if (value == null)
     {
         return(ContainsKey(key));
     }
     else
     {
         return(true);
     }
 }
 /**
  * <summary>Creates a new reference to an embedded file.</summary>
  * <param name="embeddedFile">Embedded file corresponding to the reference.</param>
  * <param name="filename">Name corresponding to the reference.</param>
  */
 public static FullFileSpecification Get(EmbeddedFile embeddedFile, string filename)
 {
     return(new FullFileSpecification(embeddedFile, filename));
 }
Example #4
0
 internal FullFileSpecification(EmbeddedFile embeddedFile, string filename) : this(embeddedFile.Document, filename)
 {
     EmbeddedFile = embeddedFile;
 }