Interface Document.Builder

    • Method Detail

      • bytes

        Document.Builder bytes​(SdkBytes bytes)

        A blob of base64-encoded document bytes. The maximum size of a document that's provided in a blob of bytes is 5 MB. The document bytes must be in PNG or JPEG format.

        If you're using an AWS SDK to call Amazon Textract, you might not need to base64-encode image bytes passed using the Bytes field.

        Parameters:
        bytes - A blob of base64-encoded document bytes. The maximum size of a document that's provided in a blob of bytes is 5 MB. The document bytes must be in PNG or JPEG format.

        If you're using an AWS SDK to call Amazon Textract, you might not need to base64-encode image bytes passed using the Bytes field.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • s3Object

        Document.Builder s3Object​(S3Object s3Object)

        Identifies an S3 object as the document source. The maximum size of a document that's stored in an S3 bucket is 5 MB.

        Parameters:
        s3Object - Identifies an S3 object as the document source. The maximum size of a document that's stored in an S3 bucket is 5 MB.
        Returns:
        Returns a reference to this object so that method calls can be chained together.