Class Document (2.0.0)
Stay organized with collections
Save and categorize content based on your preferences.
Document(mapping=None, *, ignore_unknown_fields=False, **kwargs)
A structured text document e.g. a PDF.
Attributes
Name | Description |
input_config |
.io.DocumentInputConfig
An input config specifying the content of the
document.
|
document_text |
.data_items.TextSnippet
The plain text version of this document.
|
layout |
Sequence[.data_items.Document.Layout ]
Describes the layout of the document. Sorted by
[page_number][].
|
document_dimensions |
.data_items.DocumentDimensions
The dimensions of the page in the document.
|
page_count |
int
Number of pages in the document.
|
Classes
Layout
Layout(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Describes the layout information of a
text_segment
in the document.
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 2023-12-08 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]