0
同じFieldNameを持つチェックボックスとテキストボックスがある場合。 AcrofieldsはFieldNameをキーとして使用します。異なるタイプのフィールドに同じFieldNameがある場合、AcroFieldのタイプをチェックする方法は? ITextSharp
異なるフィールドに適切な値を送信するにはどうすればよいですか? (真、偽のチェックボックスに、テキストのTextBoxに)
おかげ
PdfReader pdfReader = new PdfReader(this._pdfInputPath);
AcroFields formFields = pdfReader.AcroFields;
foreach (KeyValuePair<string, AcroFields.Item> kvp in formFields.Fields)
{
AcroFields.Item acroFieldItem = kvp.Value as AcroFields.Item;
//TextField :4
//CheckBox :2
//RadioButton :3
//ComboBox :6
//ListBox :5
//Button :1
int fileType = formFields.GetFieldType(kvp.Key);
string translatedFileName = formFields.GetTranslatedFieldName(kvp.Key);
フィールド
の異なるタイプの重複フィールド名が存在しない場合にのみ動作します以下のコード!