getBounds method

PointList getBounds()

Gets the boundaries of the document detected, in the following order: top-left, top-right, bottom-right, bottom-left.

return Boundaries of the document detected, in the following order: top-left, top-right, bottom-right, bottom-left. throws DocumentException An error has occurred during Document Library execution.

Implementation

PointList getBounds() {
  PointList bounds = PointList();
  var err = documentSDK.id3DetectedDocument_GetBounds(_pHandle.value, bounds.handle);
  if (err != DocumentError.success.value) {
    bounds.dispose();
    throw DocumentException(err);
  }
  return bounds;
}