# Cloud Vision V1 Client - Class Page (2.2.1)

2.2.1 (latest) 2.2.0 2.1.3 2.0.3 1.10.3 1.9.4 1.8.0 1.7.6 1.6.8 Reference documentation and code samples for the Cloud Vision V1 Client class Page.

Detected page from OCR.

Generated from protobuf message `google.cloud.vision.v1.Page`

## Namespace

Google \\ Cloud \\ Vision \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ property` | `https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.TextAnnotation.TextProperty` Additional information detected on the page. |
| `↳ width` | `int` Page width. For PDFs the unit is points. For images (including TIFFs) the unit is pixels. |
| `↳ height` | `int` Page height. For PDFs the unit is points. For images (including TIFFs) the unit is pixels. |
| `↳ blocks` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.Block>` List of blocks of text, images etc on this page. |
| `↳ confidence` | `float` Confidence of the OCR results on the page. Range \[0, 1\]. |

### getProperty

Additional information detected on the page.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.TextAnnotation.TextProperty|null` |   |

### hasProperty

### clearProperty

### setProperty

Additional information detected on the page.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.TextAnnotation.TextProperty` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getWidth

Page width. For PDFs the unit is points. For images (including
TIFFs) the unit is pixels.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setWidth

Page width. For PDFs the unit is points. For images (including
TIFFs) the unit is pixels.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getHeight

Page height. For PDFs the unit is points. For images (including
TIFFs) the unit is pixels.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setHeight

Page height. For PDFs the unit is points. For images (including
TIFFs) the unit is pixels.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getBlocks

List of blocks of text, images etc on this page.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.Block>` |   |

### setBlocks

List of blocks of text, images etc on this page.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.Block>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getConfidence

Confidence of the OCR results on the page. Range \[0, 1\].

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### setConfidence

Confidence of the OCR results on the page. Range \[0, 1\].

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `float` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |