File: //snap/google-cloud-cli/394/help/man/man1/gcloud_ml_vision_detect-text-pdf.1
.TH "GCLOUD_ML_VISION_DETECT\-TEXT\-PDF" 1
.SH "NAME"
.HP
gcloud ml vision detect\-text\-pdf \- detect and transcribe text from PDF files stored in Google Cloud Storage
.SH "SYNOPSIS"
.HP
\f5gcloud ml vision detect\-text\-pdf\fR \fIINPUT_FILE\fR \fIOUTPUT_PATH\fR [\fB\-\-batch\-size\fR=\fIBATCH_SIZE\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
Detect and transcribe text from PDF files stored in Google Cloud Storage.
The Vision API accepts PDF files up to 2000 pages. Larger files will return an
error.
.SH "EXAMPLES"
To detect text for input PDF file 'gs://my_bucket/input_file' and store output
in 'gs://my_bucket/out_put_prefix':
.RS 2m
$ gcloud ml vision detect\-text\-pdf gs://my_bucket/input_file \e
gs://my_bucket/out_put_prefix
.RE
.SH "POSITIONAL ARGUMENTS"
.RS 2m
.TP 2m
\fIINPUT_FILE\fR
Google Cloud Storage location to read the input from. It must be in Google Cloud
Storage format (gs://bucket/object)
.TP 2m
\fIOUTPUT_PATH\fR
Google Cloud Storage location to store the output file. It must be in Google
Cloud Storage format (gs://bucket/object)
.RE
.sp
.SH "FLAGS"
.RS 2m
.TP 2m
\fB\-\-batch\-size\fR=\fIBATCH_SIZE\fR
Maximum number of response protos to put into each output JSON file on Google
Cloud Storage. The valid range is [1, 100]. If not specified, the default value
is 20.
.RE
.sp
.SH "GCLOUD WIDE FLAGS"
These flags are available to all commands: \-\-access\-token\-file, \-\-account,
\-\-billing\-project, \-\-configuration, \-\-flags\-file, \-\-flatten,
\-\-format, \-\-help, \-\-impersonate\-service\-account, \-\-log\-http,
\-\-project, \-\-quiet, \-\-trace\-token, \-\-user\-output\-enabled,
\-\-verbosity.
Run \fB$ gcloud help\fR for details.
.SH "API REFERENCE"
This command uses the \fBvision/v1\fR API. The full documentation for this API
can be found at: https://cloud.google.com/vision/
.SH "NOTES"
These variants are also available:
.RS 2m
$ gcloud alpha ml vision detect\-text\-pdf
.RE
.RS 2m
$ gcloud beta ml vision detect\-text\-pdf
.RE