Google Cloud Document Ai V1 Client - Class PageAnchor (1.0.1)

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

Referencing the visual context of the entity in the Document.pages.

Page anchors can be cross-page, consist of multiple bounding polygons and optionally reference specific layout element types.

Generated from protobuf message google.cloud.documentai.v1.Document.PageAnchor

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ page_refs array<Google\Cloud\DocumentAI\V1\Document\PageAnchor\PageRef>

One or more references to visual page elements

getPageRefs

One or more references to visual page elements

Generated from protobuf field repeated .google.cloud.documentai.v1.Document.PageAnchor.PageRef page_refs = 1;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setPageRefs

One or more references to visual page elements

Generated from protobuf field repeated .google.cloud.documentai.v1.Document.PageAnchor.PageRef page_refs = 1;

Parameter
NameDescription
var array<Google\Cloud\DocumentAI\V1\Document\PageAnchor\PageRef>
Returns
TypeDescription
$this