Class Page (0.9.1a0)

Page(
 documentai_object: google.cloud.documentai_v1.types.document.Document.Page,
 document_text: str,
)

Represents a wrapped documentai.Document.Page .

Attributes

Name Description
documentai_object google.cloud.documentai.Document.Page
Required. The original google.cloud.documentai.Document.Page object.
document_text str
Required. The full text of the Document containing the Page.
text str
Required. UTF-8 encoded text of the page.
page_number int
Required. The page number of the Page.
form_fields List[FormField]
Required. A list of visually detected form fields on the page.
lines List[Line]
Required. A list of visually detected text lines on the page. A collection of tokens that a human would perceive as a line.
paragraphs List[Paragraph]
Required. A list of visually detected text paragraphs on the page. A collection of lines that a human would perceive as a paragraph.
blocks List[Block]
Required. A list of visually detected text blocks on the page. A collection of lines that a human would perceive as a block.
tables List[Table]
Required. A list of visually detected tables on the page.

Methods

__post_init__

__post_init__() -> None

Order of Init Token Line Paragraph, Block

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.