Google Cloud Document Ai V1 Client - Class Dimension (2.0.0-RC1)

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

Namespace

Google \ Cloud \ DocumentAI \ V1 \ Document \ Page

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.

Returns
Type Description
float

setWidth

Page width.

Parameter
Name Description
var float
Returns
Type Description
$this

getHeight

Page height.

Returns
Type Description
float

setHeight

Page height.

Parameter
Name Description
var float
Returns
Type Description
$this

getUnit

Dimension unit.

Returns
Type Description
string

setUnit

Dimension unit.

Parameter
Name Description
var string
Returns
Type Description
$this