iTextSharp.text.pdf.AcroFields.Item.GetMerged C# (CSharp) Method

GetMerged() public method

public GetMerged ( int idx ) : PdfDictionary
idx int
return PdfDictionary
            public PdfDictionary GetMerged(int idx) {
                return (PdfDictionary) merged[idx];
            }

Usage Example

コード例 #1
0
 /// <summary>
 /// Sets all the fields from this  AcroFields
 /// </summary>
 /// <param name="af">the  AcroFields </param>
 public void SetFields(AcroFields af)
 {
     foreach (DictionaryEntry entry in af.Fields)
     {
         string          fn   = (string)entry.Key;
         AcroFields.Item item = (AcroFields.Item)entry.Value;
         PdfDictionary   dic  = item.GetMerged(0);
         PdfObject       v    = PdfReader.GetPdfObjectRelease(dic.Get(PdfName.V));
         if (v == null)
         {
             continue;
         }
         PdfObject ft = PdfReader.GetPdfObjectRelease(dic.Get(PdfName.Ft));
         if (ft == null || PdfName.Sig.Equals(ft))
         {
             continue;
         }
         SetField(fn, v);
     }
 }
All Usage Examples Of iTextSharp.text.pdf.AcroFields.Item::GetMerged