And again - all works fine for me (name and value gets fine). Can you please send us sample file where you get such problems?
Also note that annots array is zero based, so if you want to get all annots, you should change your "for" statement:
Code: Select all
for (int j=0; j<icount; j++)