Some Form objects returned as null for pdf in Android

The form collection is returning null for half of the form objects for some pdf files. Attached is an example file. Note, 41 fields in the collection and 20 are returned as null.
Here is the code.

  File oPath = new File(Environment.getExternalStorageDirectory(), "Documents");
  File oPdfLic = new File(oPath, "aspose_pdf.lic");
  File oFormIn = new File(oPath, "form.pdf");

  FileInputStream oStream = new FileInputStream(oPdfLic.getAbsolutePath());
  License oLicense = new License();
  oLicense.setLicense(oStream);
  oStream.close();

  {
    com.aspose.pdf.Document oDoc = new com.aspose.pdf.Document(oFormIn.getAbsolutePath());

    Form oForm = oDoc.getForm();
    log("debug", "fields: " + oForm.size());

    // build our index list //
    for (int i = 0; i < oForm.size(); i++)
    {
      WidgetAnnotation oField = oForm.get_Item(i + 1);
      if (oField == null)
      {
        log("debug", "field is null");
        continue;
      }

      String szName = oField.getFullName();
      log("debug", "field: " + szName);
    }
  }

form.pdf (694.0 KB)

@kkoch

Thanks for contacting support.

We have tested the scenario in our environment and were managed to replicate the same issue which you have mentioned. Therefore, we have logged it as PDFANDROID-508 in our issue tracking system, for the sake of further investigation. We will further look into the details of this issue and keep you posted with the status of its correction. Please be patient and spare us little time.

We are sorry for the inconvenience.

The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan