getBounds method

Rectangle getBounds()

Gets the boundaries of the text field in the image.

return Boundaries of the text field in the image. throws DocumentException An error has occurred during Document Library execution.

Implementation

Rectangle getBounds() {
  Pointer<id3DocumentRectangle> pBounds = calloc();
  var err = documentSDK.id3DocumentTextField_GetBounds(_pHandle.value, pBounds);
  if (err != DocumentError.success.value) {
  	calloc.free(pBounds);
  	throw DocumentException(err);
  }
  return Rectangle(pBounds);
}