public String[] GetListSelection(String name) {
String[] ret;
String s = GetField(name);
if (s == null) {
ret = new String[]{};
}
else {
ret = new String[]{ s };
}
Item item = (Item)fields[name];
if (item == null)
return ret;
PdfArray values = item.GetMerged(0).GetAsArray(PdfName.I);
if (values == null)
return ret;
ret = new String[values.Size];
String[] options = GetListOptionExport(name);
int idx = 0;
foreach (PdfNumber n in values.ArrayList) {
ret[idx++] = options[n.IntValue];
}
return ret;
}