Google Cloud Document Ai V1 Client - Class ProcessOptions (1.8.2)

Reference documentation and code samples for the Google Cloud Document Ai V1 Client class ProcessOptions.

Options for Process API

Generated from protobuf message google.cloud.documentai.v1.ProcessOptions

Namespace

Google \ Cloud \ DocumentAI \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ individual_page_selector Google\Cloud\DocumentAI\V1\ProcessOptions\IndividualPageSelector

Which pages to process (1-indexed).

↳ from_start int

Only process certain pages from the start. Process all if the document has fewer pages.

↳ from_end int

Only process certain pages from the end, same as above.

↳ ocr_config Google\Cloud\DocumentAI\V1\OcrConfig

Only applicable to OCR_PROCESSOR. Returns error if set on other processor types.

getIndividualPageSelector

Which pages to process (1-indexed).

Returns
TypeDescription
Google\Cloud\DocumentAI\V1\ProcessOptions\IndividualPageSelector|null

hasIndividualPageSelector

setIndividualPageSelector

Which pages to process (1-indexed).

Parameter
NameDescription
var Google\Cloud\DocumentAI\V1\ProcessOptions\IndividualPageSelector
Returns
TypeDescription
$this

getFromStart

Only process certain pages from the start. Process all if the document has fewer pages.

Returns
TypeDescription
int

hasFromStart

setFromStart

Only process certain pages from the start. Process all if the document has fewer pages.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getFromEnd

Only process certain pages from the end, same as above.

Returns
TypeDescription
int

hasFromEnd

setFromEnd

Only process certain pages from the end, same as above.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getOcrConfig

Only applicable to OCR_PROCESSOR. Returns error if set on other processor types.

Returns
TypeDescription
Google\Cloud\DocumentAI\V1\OcrConfig|null

hasOcrConfig

clearOcrConfig

setOcrConfig

Only applicable to OCR_PROCESSOR. Returns error if set on other processor types.

Parameter
NameDescription
var Google\Cloud\DocumentAI\V1\OcrConfig
Returns
TypeDescription
$this

getPageRange

Returns
TypeDescription
string