Google Cloud Document Ai V1 Client - Class Dimension (1.5.0)

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
NameDescription
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
TypeDescription
float

setWidth

Page width.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getHeight

Page height.

Returns
TypeDescription
float

setHeight

Page height.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getUnit

Dimension unit.

Returns
TypeDescription
string

setUnit

Dimension unit.

Parameter
NameDescription
var string
Returns
TypeDescription
$this