/// <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);
}
}