Rendered image for this page. This image is preprocessed to remove any skew, rotation, and distortions such that the annotation bounding boxes can be upright and axis-aligned.
A list of visually detected text blocks on the page. A block has a set of lines (collected into paragraphs) that have a common line-spacing and orientation.
1-based index for currentPagein a parentDocument. Useful when a page is
taken out of aDocumentfor
individual processing.
Returns
Type
Description
int
setPageNumber
1-based index for currentPagein a parentDocument. Useful when a page is
taken out of aDocumentfor
individual processing.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getImage
Rendered image for this page. This image is preprocessed to remove any
skew, rotation, and distortions such that the annotation bounding boxes
can be upright and axis-aligned.
Rendered image for this page. This image is preprocessed to remove any
skew, rotation, and distortions such that the annotation bounding boxes
can be upright and axis-aligned.
[[["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 Page (2.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.0 (latest)](/php/docs/reference/cloud-document-ai/latest/V1.Document.Page)\n- [2.2.2](/php/docs/reference/cloud-document-ai/2.2.2/V1.Document.Page)\n- [2.1.3](/php/docs/reference/cloud-document-ai/2.1.3/V1.Document.Page)\n- [2.0.0](/php/docs/reference/cloud-document-ai/2.0.0/V1.Document.Page)\n- [1.14.0](/php/docs/reference/cloud-document-ai/1.14.0/V1.Document.Page)\n- [1.13.1](/php/docs/reference/cloud-document-ai/1.13.1/V1.Document.Page)\n- [1.12.2](/php/docs/reference/cloud-document-ai/1.12.2/V1.Document.Page)\n- [1.9.0](/php/docs/reference/cloud-document-ai/1.9.0/V1.Document.Page)\n- [1.8.2](/php/docs/reference/cloud-document-ai/1.8.2/V1.Document.Page)\n- [1.7.0](/php/docs/reference/cloud-document-ai/1.7.0/V1.Document.Page)\n- [1.6.0](/php/docs/reference/cloud-document-ai/1.6.0/V1.Document.Page)\n- [1.5.0](/php/docs/reference/cloud-document-ai/1.5.0/V1.Document.Page)\n- [1.4.0](/php/docs/reference/cloud-document-ai/1.4.0/V1.Document.Page)\n- [1.3.0](/php/docs/reference/cloud-document-ai/1.3.0/V1.Document.Page)\n- [1.2.2](/php/docs/reference/cloud-document-ai/1.2.2/V1.Document.Page)\n- [1.1.1](/php/docs/reference/cloud-document-ai/1.1.1/V1.Document.Page)\n- [1.0.1](/php/docs/reference/cloud-document-ai/1.0.1/V1.Document.Page) \nReference documentation and code samples for the Google Cloud Document Ai V1 Client class Page.\n\nA page in a [Document](/php/docs/reference/cloud-document-ai/latest/V1.Document).\n\nGenerated from protobuf message `google.cloud.documentai.v1.Document.Page`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ DocumentAI \\\\ V1 \\\\ Document\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getPageNumber\n\n1-based index for current\n[Page](/php/docs/reference/cloud-document-ai/latest/V1.Document.Page) in a parent\n[Document](/php/docs/reference/cloud-document-ai/latest/V1.Document). Useful when a page is\ntaken out of a [Document](/php/docs/reference/cloud-document-ai/latest/V1.Document) for\nindividual processing.\n\n### setPageNumber\n\n1-based index for current\n[Page](/php/docs/reference/cloud-document-ai/latest/V1.Document.Page) in a parent\n[Document](/php/docs/reference/cloud-document-ai/latest/V1.Document). Useful when a page is\ntaken out of a [Document](/php/docs/reference/cloud-document-ai/latest/V1.Document) for\nindividual processing.\n\n### getImage\n\nRendered image for this page. This image is preprocessed to remove any\nskew, rotation, and distortions such that the annotation bounding boxes\ncan be upright and axis-aligned.\n\n### hasImage\n\n### clearImage\n\n### setImage\n\nRendered image for this page. This image is preprocessed to remove any\nskew, rotation, and distortions such that the annotation bounding boxes\ncan be upright and axis-aligned.\n\n### getTransforms\n\nTransformation matrices that were applied to the original document image\nto produce [Page.image](/php/docs/reference/cloud-document-ai/latest/V1.Document.Page#_Google_Cloud_DocumentAI_V1_Document_Page__getImage__).\n\n### setTransforms\n\nTransformation matrices that were applied to the original document image\nto produce [Page.image](/php/docs/reference/cloud-document-ai/latest/V1.Document.Page#_Google_Cloud_DocumentAI_V1_Document_Page__getImage__).\n\n### getDimension\n\nPhysical dimension of the page.\n\n### hasDimension\n\n### clearDimension\n\n### setDimension\n\nPhysical dimension of the page.\n\n### getLayout\n\n[Layout](/php/docs/reference/cloud-document-ai/latest/V1.Document.Page.Layout) for the page.\n\n### hasLayout\n\n### clearLayout\n\n### setLayout\n\n[Layout](/php/docs/reference/cloud-document-ai/latest/V1.Document.Page.Layout) for the page.\n\n### getDetectedLanguages\n\nA list of detected languages together with confidence.\n\n### setDetectedLanguages\n\nA list of detected languages together with confidence.\n\n### getBlocks\n\nA list of visually detected text blocks on the page.\n\nA block has a set of lines (collected into paragraphs) that have a common\nline-spacing and orientation.\n\n### setBlocks\n\nA list of visually detected text blocks on the page.\n\nA block has a set of lines (collected into paragraphs) that have a common\nline-spacing and orientation.\n\n### getParagraphs\n\nA list of visually detected text paragraphs on the page.\n\nA collection of lines that a human would perceive as a paragraph.\n\n### setParagraphs\n\nA list of visually detected text paragraphs on the page.\n\nA collection of lines that a human would perceive as a paragraph.\n\n### getLines\n\nA list of visually detected text lines on the page.\n\nA collection of tokens that a human would perceive as a line.\n\n### setLines\n\nA list of visually detected text lines on the page.\n\nA collection of tokens that a human would perceive as a line.\n\n### getTokens\n\nA list of visually detected tokens on the page.\n\n### setTokens\n\nA list of visually detected tokens on the page.\n\n### getVisualElements\n\nA list of detected non-text visual elements e.g. checkbox,\nsignature etc. on the page.\n\n### setVisualElements\n\nA list of detected non-text visual elements e.g. checkbox,\nsignature etc. on the page.\n\n### getTables\n\nA list of visually detected tables on the page.\n\n### setTables\n\nA list of visually detected tables on the page.\n\n### getFormFields\n\nA list of visually detected form fields on the page.\n\n### setFormFields\n\nA list of visually detected form fields on the page.\n\n### getSymbols\n\nA list of visually detected symbols on the page.\n\n### setSymbols\n\nA list of visually detected symbols on the page.\n\n### getDetectedBarcodes\n\nA list of detected barcodes.\n\n### setDetectedBarcodes\n\nA list of detected barcodes.\n\n### getImageQualityScores\n\nImage quality scores.\n\n### hasImageQualityScores\n\n### clearImageQualityScores\n\n### setImageQualityScores\n\nImage quality scores.\n\n### getProvenance\n\nThe history of this page.\n\n### hasProvenance\n\n### clearProvenance\n\n### setProvenance\n\nThe history of this page."]]