Optional. Identifies the bounding polygon of a layout element on the page. Iflayout_typeis set, the bounding polygon must be exactly the same to the layout element it's referring to.
↳ confidence
float
Optional. Confidence of detected page element, if applicable. Range[0, 1].
getPage
Required. Index into theDocument.pageselement,
for example using<xref uid="\Page_refs\Page\">Document.pages</xref>to locate the related page element.
Optional. Identifies the bounding polygon of a layout element on the
page. Iflayout_typeis set, the bounding polygon must be exactly the
same to the layout element it's referring to.
Optional. Identifies the bounding polygon of a layout element on the
page. Iflayout_typeis set, the bounding polygon must be exactly the
same to the layout element it's referring to.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Document Ai V1 Client - Class PageRef (2.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.0 (latest)](/php/docs/reference/cloud-document-ai/latest/V1.Document.PageAnchor.PageRef)\n- [2.2.2](/php/docs/reference/cloud-document-ai/2.2.2/V1.Document.PageAnchor.PageRef)\n- [2.1.3](/php/docs/reference/cloud-document-ai/2.1.3/V1.Document.PageAnchor.PageRef)\n- [2.0.0](/php/docs/reference/cloud-document-ai/2.0.0/V1.Document.PageAnchor.PageRef)\n- [1.14.0](/php/docs/reference/cloud-document-ai/1.14.0/V1.Document.PageAnchor.PageRef)\n- [1.13.1](/php/docs/reference/cloud-document-ai/1.13.1/V1.Document.PageAnchor.PageRef)\n- [1.12.2](/php/docs/reference/cloud-document-ai/1.12.2/V1.Document.PageAnchor.PageRef)\n- [1.9.0](/php/docs/reference/cloud-document-ai/1.9.0/V1.Document.PageAnchor.PageRef)\n- [1.8.2](/php/docs/reference/cloud-document-ai/1.8.2/V1.Document.PageAnchor.PageRef)\n- [1.7.0](/php/docs/reference/cloud-document-ai/1.7.0/V1.Document.PageAnchor.PageRef)\n- [1.6.0](/php/docs/reference/cloud-document-ai/1.6.0/V1.Document.PageAnchor.PageRef)\n- [1.5.0](/php/docs/reference/cloud-document-ai/1.5.0/V1.Document.PageAnchor.PageRef)\n- [1.4.0](/php/docs/reference/cloud-document-ai/1.4.0/V1.Document.PageAnchor.PageRef)\n- [1.3.0](/php/docs/reference/cloud-document-ai/1.3.0/V1.Document.PageAnchor.PageRef)\n- [1.2.2](/php/docs/reference/cloud-document-ai/1.2.2/V1.Document.PageAnchor.PageRef)\n- [1.1.1](/php/docs/reference/cloud-document-ai/1.1.1/V1.Document.PageAnchor.PageRef)\n- [1.0.1](/php/docs/reference/cloud-document-ai/1.0.1/V1.Document.PageAnchor.PageRef) \nReference documentation and code samples for the Google Cloud Document Ai V1 Client class PageRef.\n\nRepresents a weak reference to a page element within a document.\n\nGenerated from protobuf message `google.cloud.documentai.v1.Document.PageAnchor.PageRef`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ DocumentAI \\\\ V1 \\\\ Document \\\\ PageAnchor\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getPage\n\nRequired. Index into the\n[Document.pages](/php/docs/reference/cloud-document-ai/latest/V1.Document#_Google_Cloud_DocumentAI_V1_Document__getPages__) element,\nfor example using\n`\u003cxref uid=\"\\Page_refs\\Page\\\"\u003eDocument.pages\u003c/xref\u003e` to locate the related page element.\n\nThis field is skipped when its value is the default `0`. See\n\u003chttps://developers.google.com/protocol-buffers/docs/proto3#json\u003e.\n\n### setPage\n\nRequired. Index into the\n[Document.pages](/php/docs/reference/cloud-document-ai/latest/V1.Document#_Google_Cloud_DocumentAI_V1_Document__getPages__) element,\nfor example using\n`\u003cxref uid=\"\\Page_refs\\Page\\\"\u003eDocument.pages\u003c/xref\u003e` to locate the related page element.\n\nThis field is skipped when its value is the default `0`. See\n\u003chttps://developers.google.com/protocol-buffers/docs/proto3#json\u003e.\n\n### getLayoutType\n\nOptional. The type of the layout element that is being referenced if\nany.\n\n### setLayoutType\n\nOptional. The type of the layout element that is being referenced if\nany.\n\n### getLayoutId\n\nOptional. Deprecated. Use\n[PageRef.bounding_poly](/php/docs/reference/cloud-document-ai/latest/V1.Document.PageAnchor.PageRef#_Google_Cloud_DocumentAI_V1_Document_PageAnchor_PageRef__getBoundingPoly__)\ninstead.\n\n### setLayoutId\n\nOptional. Deprecated. Use\n[PageRef.bounding_poly](/php/docs/reference/cloud-document-ai/latest/V1.Document.PageAnchor.PageRef#_Google_Cloud_DocumentAI_V1_Document_PageAnchor_PageRef__getBoundingPoly__)\ninstead.\n\n### getBoundingPoly\n\nOptional. Identifies the bounding polygon of a layout element on the\npage. If `layout_type` is set, the bounding polygon must be exactly the\nsame to the layout element it's referring to.\n\n### hasBoundingPoly\n\n### clearBoundingPoly\n\n### setBoundingPoly\n\nOptional. Identifies the bounding polygon of a layout element on the\npage. If `layout_type` is set, the bounding polygon must be exactly the\nsame to the layout element it's referring to.\n\n### getConfidence\n\nOptional. Confidence of detected page element, if applicable. Range\n`[0, 1]`.\n\n### setConfidence\n\nOptional. Confidence of detected page element, if applicable. Range\n`[0, 1]`."]]