getMrzType method

MrzType getMrzType()

Gets the the type of machine-readable zone (MRZ), if applicable.

return The type of machine-readable zone (MRZ), if applicable. throws DocumentException An error has occurred during Document Library execution.

Implementation

MrzType getMrzType() {
  Pointer<Int32> pMrzType = calloc();
  try {
    var err = documentSDK.id3DocumentInfo_GetMrzType(_pHandle.value, pMrzType);
    if (err != DocumentError.success.value) {
      throw DocumentException(err);
    }
    final vMrzType = MrzTypeX.fromValue(pMrzType.value);
    return vMrzType;
  } finally {
    calloc.free(pMrzType);
  }
}