Reference documentation and code samples for the Google Cloud Document Ai V1 Client class Dimension.
Dimension for the page.
Generated from protobuf message google.cloud.documentai.v1.Document.Page.Dimension
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ width |
float
Page width. |
↳ height |
float
Page height. |
↳ unit |
string
Dimension unit. |
getWidth
Page width.
Generated from protobuf field float width = 1;
Returns | |
---|---|
Type | Description |
float |
setWidth
Page width.
Generated from protobuf field float width = 1;
Parameter | |
---|---|
Name | Description |
var |
float
|
Returns | |
---|---|
Type | Description |
$this |
getHeight
Page height.
Generated from protobuf field float height = 2;
Returns | |
---|---|
Type | Description |
float |
setHeight
Page height.
Generated from protobuf field float height = 2;
Parameter | |
---|---|
Name | Description |
var |
float
|
Returns | |
---|---|
Type | Description |
$this |
getUnit
Dimension unit.
Generated from protobuf field string unit = 3;
Returns | |
---|---|
Type | Description |
string |
setUnit
Dimension unit.
Generated from protobuf field string unit = 3;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |