Read Document
Read a document in Google Docs.
Input
Field | Definition | Type | Required |
---|---|---|---|
Document |
|||
ID |
Unique ID of the document. |
Text |
TRUE |
Suggestions View Mode |
Choose one of the following methods: Default: Suggestions View Mode applied to the returned document depends on the user's current view access level. Inline: Returned document has suggestions inline. Suggested changes are differentiated from base content within the document. Accepted: Returned document is a preview with all suggested changes accepted. Rejected: Returned document is a preview with all suggested changes rejected if there are any suggestions in the document. |
Dropdown |
FALSE |
Output
Field | Definition | Type |
---|---|---|
Result |
||
Document ID |
Unique ID of the document. |
Text |
Title |
Title of the document. |
Text |
Body |
||
Content |
Contents of the body. |
List of Objects |
Start Index |
Zero-based start index of this structural element, in UTF-16 code units. |
Number |
End Index |
Zero-based end index of this structural element, exclusive, in UTF-16 code units. |
Number |
Paragraph |
Paragraph type of structural element. |
Object |
Section Break |
Section break type of structural element. |
Object |
Table |
Table type of structural element. |
Object |
Table of Contents |
Table of contents type of structural element. |
Object |
Headers |
Headers in the document, keyed by header ID. |
Text |
Footers |
Footers in the document, keyed by header ID. |
Text |
Footnotes |
Footnotes in the document, keyed by footnote ID. |
Text |
Document Style |
||
Background |
Background color of the document. |
Object |
Default Header ID |
ID of the default header. If not set, there's no default header. |
Text |
Default Footer ID |
ID of the default footer. If not set, there's no default footer. |
Text |
Even Page Header ID | ID of the header used only for even pages. The value of Use Even Page Header Footer? determines whether to use the Default Header ID or this value for the header on even pages. If not set, there's no even page header. |
Text |
Event Page Footer ID | ID of the footer used only for even pages. The value of Use Even Page Header Footer? determines whether to use the Default Footer ID or this value for the footer on even pages. If not set, there's no even page footer. |
Text |
First Page Header ID | ID of the header used only for the first page. If not set then a unique header for the first page doesn't exist. The value of Use First Page Header Footer? determines whether to use the Default Header IDor this value for the header on the first page. If not set, there's no first page header. |
Text |
First Page Footer ID | ID of the footer used only for the first page. If not set then a unique footer for the first page doesn't exist. The value of Use First Page Header Footer? determines whether to use the Default Footer ID or this value for the footer on the first page. If not set, there's no first page footer. |
Text |
Use First Page Header Footer? | True indicates whether to use the first page header / footer IDs for the first page. Otherwise, False. |
True/False |
Use Even Page Header Footer? | True indicates whether to use the even page header / footer IDs for the even pages. Otherwise, False. |
True/False |
Page Number Start |
Page number from which to start counting the number of pages. |
Number |
Margin Top |
Top page margin. Updating the top page margin on the document style clears the top page margin on all section styles. |
Object |
Margin Bottom |
Bottom page margin. Updating the bottom page margin on the document style clears the bottom page margin on all section styles. |
Object |
Margin Right |
Right page margin. Updating the right page margin on the document style clears the right page margin on all section styles. It may also cause columns to resize in all sections. |
Object |
Margin Left | Left page margin. Updating the left page margin on the document style clears the left page margin on all section styles. It may also cause columns to resize in all sections. |
Object |
Page Size | Size of a page in the document. |
Object |
Margin Header | Amount of space between the top of the page and the contents of the header. |
Object |
Margin Footer | Amount of space between the bottom of the page and the contents of the footer. |
Object |
User Custom Header Footer Margins? |
True if one of the following options is respected:
False when the default values in the docs editor for header and footer margin are used. |
True/False |
Suggested Document Style Changes | Suggested changes to the style of the document, keyed by suggestion ID. |
Object |
Named Styles | Named styles of the document. |
Object |
Suggested Named Styles Changes | Suggested changes to the named styles of the document, keyed by suggestion ID. |
Object |
Lists | Lists in the document, keyed by list ID. |
Object |
Named Ranges | Named ranges in the document, keyed by name. |
Object |
Revision ID | Revision ID of the document. Can be used in update requests to specify which revision of a document to apply updates to and how the request should behave if the document has been edited since that revision. |
Text |
Suggestions View Mode | Suggestions view mode applied to the document. |
Text |
Inline Objects | Inline objects in the document, keyed by object ID. |
Object |
Positioned Objects | Positioned objects in the document, keyed by object ID. |
Object |