Exemplo n.º 1
0
 public PDFName Register(PDFResource rsrc)
 {
     if (null == rsrc.Name || string.IsNullOrEmpty(rsrc.Name.Value))
     {
         string name = this.Document.GetIncrementID(rsrc.Type);
         rsrc.Name = (PDFName)name;
     }
     rsrc.RegisterUse(this._resources, this.Owner);
     return(rsrc.Name);
 }
Exemplo n.º 2
0
 public PDFName Register(PDFResource reference)
 {
     if (null == reference.Name || string.IsNullOrEmpty(reference.Name.Value))
     {
         string name = this.Document.GetIncrementID(reference.Type);
         reference.Name = (PDFName)name;
     }
     reference.RegisterUse(this.Resources, this);
     return(reference.Name);
 }