{ "$schema": "https://json-structure.org/meta/core/v0/#", "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-comprehend/refs/heads/main/json-structure/openapi.yml-document-reader-config-structure.json", "name": "DocumentReaderConfig", "description": "

Provides configuration parameters to override the default actions for extracting text from PDF documents and image files.

By default, Amazon Comprehend performs the following actions to extract text from files, based on the input file type:

DocumentReaderConfig does not apply to plain text files or Word files.

For image files and PDF documents, you can override these default actions using the fields listed below. For more information, see Setting text extraction options in the Comprehend Developer Guide.

", "type": "object", "properties": { "DocumentReadAction": { "allOf": [ { "$ref": "#/components/schemas/DocumentReadAction" }, { "description": "

This field defines the Amazon Textract API operation that Amazon Comprehend uses to extract text from PDF files and image files. Enter one of the following values:

" } ] }, "DocumentReadMode": { "allOf": [ { "$ref": "#/components/schemas/DocumentReadMode" }, { "description": "

Determines the text extraction actions for PDF files. Enter one of the following values:

" } ] }, "FeatureTypes": { "allOf": [ { "$ref": "#/components/schemas/ListOfDocumentReadFeatureTypes" }, { "description": "

Specifies the type of Amazon Textract features to apply. If you chose TEXTRACT_ANALYZE_DOCUMENT as the read action, you must specify one or both of the following values:

" } ] } }, "required": [ "DocumentReadAction" ] }