- Resource: Page
- JSON representation
- PageType
- PageElement
- AffineTransform
- Group
- Shape
- Type
- TextContent
- TextElement
- ParagraphMarker
- ParagraphStyle
- Alignment
- TextDirection
- SpacingMode
- Bullet
- TextStyle
- OptionalColor
- OpaqueColor
- RgbColor
- ThemeColorType
- Link
- RelativeSlideLink
- BaselineOffset
- WeightedFontFamily
- TextRun
- AutoText
- Type
- List
- NestingLevel
- ShapeProperties
- ShapeBackgroundFill
- PropertyState
- SolidFill
- Outline
- OutlineFill
- DashStyle
- Shadow
- Type
- RectanglePosition
- ContentAlignment
- Autofit
- AutofitType
- Placeholder
- Type
- Image
- ImageProperties
- CropProperties
- Recolor
- ColorStop
- Name
- Video
- Source
- VideoProperties
- Line
- LineProperties
- LineFill
- ArrowStyle
- LineConnection
- Type
- LineCategory
- Table
- TableRow
- TableRowProperties
- TableCell
- TableCellLocation
- TableCellProperties
- TableCellBackgroundFill
- TableColumnProperties
- TableBorderRow
- TableBorderCell
- TableBorderProperties
- TableBorderFill
- WordArt
- SheetsChart
- SheetsChartProperties
- SpeakerSpotlight
- SpeakerSpotlightProperties
- SlideProperties
- LayoutProperties
- NotesProperties
- MasterProperties
- PageProperties
- PageBackgroundFill
- StretchedPictureFill
- ColorScheme
- ThemeColorPair
- CommentAnchor
- ObjectAnchor
- ShapeTextAnchors
- TextRange
- TableCellAnchors
- TableCellTextRanges
- Methods
Resource: Page
A page in a presentation.
| JSON representation |
|---|
{ "objectId": string, "pageType": enum ( |
| Fields | |
|---|---|
objectId |
The object ID for this page. Object IDs used by |
pageType |
The type of the page. |
pageElements[] |
The page elements rendered on the page. |
revisionId |
Output only. The revision ID of the presentation. Can be used in update requests to assert the presentation revision hasn't changed since the last read operation. Only populated if the user has edit access to the presentation. The revision ID is not a sequential number but an opaque string. The format of the revision ID might change over time. A returned revision ID is only guaranteed to be valid for 24 hours after it has been returned and cannot be shared across users. If the revision ID is unchanged between calls, then the presentation has not changed. Conversely, a changed ID (for the same presentation and user) usually means the presentation has been updated. However, a changed ID can also be due to internal factors such as ID format changes. |
pageProperties |
The properties of the page. |
commentAnchors[] |
Output only. The comment anchors present on the page. |
comments[] |
Output only. The comment threads associated with the page. Only populated if the page was fetched via a |
commentsViewMode |
Output only. The comments view mode applied to the page. Only populated if the page was fetched via a |
| Properties that are specific for each page type. Masters do not require any additional properties. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: | |
slideProperties |
Slide specific properties. Only set if pageType = SLIDE. |
layoutProperties |
Layout specific properties. Only set if pageType = LAYOUT. |
notesProperties |
Notes specific properties. Only set if pageType = NOTES. |
masterProperties |
Master specific properties. Only set if pageType = MASTER. |
| End of mutually exclusive fields. | |
PageType
The type of a page.
| Enums | |
|---|---|
SLIDE |
A slide page. |
MASTER |
A master slide page. |
LAYOUT |
A layout page. |
NOTES |
A notes page. |
NOTES_MASTER |
A notes master page. |
PageElement
A visual element rendered on a page.
| JSON representation |
|---|
{ "objectId": string, "size": { object ( |
| Fields | |
|---|---|
objectId |
The object ID for this page element. Object IDs used by |
size |
The size of the page element. |
transform |
The transform of the page element. The visual appearance of the page element is determined by its absolute transform. To compute the absolute transform, preconcatenate a page element's transform with the transforms of all of its parent groups. If the page element is not in a group, its absolute transform is the same as the value in this field. The initial transform for the newly created |
title |
The title of the page element. Combined with description to display alt text. The field is not supported for |
description |
The description of the page element. Combined with title to display alt text. The field is not supported for |
| The kind of element that this PageElement represents. Each message contains any properties that are specific to that kind of page element. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: | |
elementGroup |
A collection of page elements joined as a single unit. |
shape |
A generic shape. |
image |
An image page element. |
video |
A video page element. |
line |
A line page element. |
table |
A table page element. |
wordArt |
A word art page element. |
sheetsChart |
A linked chart embedded from Google Sheets. Unlinked charts are represented as images. |
speakerSpotlight |
A Speaker Spotlight. |
| End of mutually exclusive fields. | |
Group
A PageElement kind representing a joined collection of PageElements.
| JSON representation |
|---|
{
"children": [
{
object ( |
| Fields | |
|---|---|
children[] |
The collection of elements in the group. The minimum size of a group is 2. |
WordArt
A PageElement kind representing word art.
| JSON representation |
|---|
{ "renderedText": string } |
| Fields | |
|---|---|
renderedText |
The text rendered as word art. |
SpeakerSpotlight
A PageElement kind representing a Speaker Spotlight.
| JSON representation |
|---|
{
"speakerSpotlightProperties": {
object ( |
| Fields | |
|---|---|
speakerSpotlightProperties |
The properties of the Speaker Spotlight. |
SpeakerSpotlightProperties
The properties of the SpeakerSpotlight.
| JSON representation |
|---|
{ "outline": { object ( |
| Fields | |
|---|---|
outline |
The outline of the Speaker Spotlight. If not set, it has no outline. |
shadow |
The shadow of the Speaker Spotlight. If not set, it has no shadow. |
SlideProperties
The properties of Page that are only relevant for pages with pageType SLIDE.
| JSON representation |
|---|
{
"layoutObjectId": string,
"masterObjectId": string,
"notesPage": {
object ( |
| Fields | |
|---|---|
layoutObjectId |
The object ID of the layout that this slide is based on. This property is read-only. |
masterObjectId |
The object ID of the master that this slide is based on. This property is read-only. |
notesPage |
The notes page that this slide is associated with. It defines the visual appearance of a notes page when printing or exporting slides with speaker notes. A notes page inherits properties from the |
isSkipped |
Whether the slide is skipped in the presentation mode. Defaults to false. |
LayoutProperties
The properties of Page are only relevant for pages with pageType LAYOUT.
| JSON representation |
|---|
{ "masterObjectId": string, "name": string, "displayName": string } |
| Fields | |
|---|---|
masterObjectId |
The object ID of the master that this layout is based on. |
name |
The name of the layout. |
displayName |
The human-readable name of the layout. |
NotesProperties
The properties of Page that are only relevant for pages with pageType NOTES.
| JSON representation |
|---|
{ "speakerNotesObjectId": string } |
| Fields | |
|---|---|
speakerNotesObjectId |
The object ID of the shape on this notes page that contains the speaker notes for the corresponding slide. The actual shape may not always exist on the notes page. Inserting text using this object ID will automatically create the shape. In this case, the actual shape may have different object ID. The |
MasterProperties
The properties of Page that are only relevant for pages with pageType MASTER.
| JSON representation |
|---|
{ "displayName": string } |
| Fields | |
|---|---|
displayName |
The human-readable name of the master. |
PageProperties
The properties of the Page.
The page will inherit properties from the parent page. Depending on the page type the hierarchy is defined in either SlideProperties or LayoutProperties.
| JSON representation |
|---|
{ "pageBackgroundFill": { object ( |
| Fields | |
|---|---|
pageBackgroundFill |
The background fill of the page. If unset, the background fill is inherited from a parent page if it exists. If the page has no parent, then the background fill defaults to the corresponding fill in the Slides editor. |
colorScheme |
The color scheme of the page. If unset, the color scheme is inherited from a parent page. If the page has no parent, the color scheme uses a default Slides color scheme, matching the defaults in the Slides editor. Only the concrete colors of the first 12 |
PageBackgroundFill
The page background fill.
| JSON representation |
|---|
{ "propertyState": enum ( |
| Fields | |
|---|---|
propertyState |
The background fill property state. Updating the fill on a page will implicitly update this field to |
| The kind of background fill. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: | |
solidFill |
Solid color fill. |
stretchedPictureFill |
Stretched picture fill. |
| End of mutually exclusive fields. | |
StretchedPictureFill
The stretched picture fill. The page or page element is filled entirely with the specified picture. The picture is stretched to fit its container.
| JSON representation |
|---|
{
"contentUrl": string,
"size": {
object ( |
| Fields | |
|---|---|
contentUrl |
Reading the contentUrl: An URL to a picture with a default lifetime of 30 minutes. This URL is tagged with the account of the requester. Anyone with the URL effectively accesses the picture as the original requester. Access to the picture may be lost if the presentation's sharing settings change. Writing the contentUrl: The picture is fetched once at insertion time and a copy is stored for display inside the presentation. Pictures must be less than 50MB in size, cannot exceed 25 megapixels, and must be in one of PNG, JPEG, or GIF format. The provided URL can be at most 2 kB in length. |
size |
The original size of the picture fill. This field is read-only. |
ColorScheme
The palette of predefined colors for a page.
| JSON representation |
|---|
{
"colors": [
{
object ( |
| Fields | |
|---|---|
colors[] |
The ThemeColorType and corresponding concrete color pairs. |
ThemeColorPair
A pair mapping a theme color type to the concrete color it represents.
| JSON representation |
|---|
{ "type": enum ( |
| Fields | |
|---|---|
type |
The type of the theme color. |
color |
The concrete color corresponding to the theme color type above. |
CommentAnchor
Contains a list of all locations in a Page that are anchored to a CommentThread via the same anchorId. Multiple separate anchors may refer to the same location, either within a Page or across different pages,
| JSON representation |
|---|
{
"anchorId": string,
"objectAnchors": [
{
object ( |
| Fields | |
|---|---|
anchorId |
Output only. The unique ID of the comment anchor. |
objectAnchors[] |
Output only. All object ID-based locations within a page that refer to the anchor ID. |
ObjectAnchor
Represents comment anchor data tied to a Slides object, for example a Page or PageElement.
| JSON representation |
|---|
{ "objectId": string, // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "shapeTextAnchors": { object ( |
| Fields | |
|---|---|
objectId |
Output only. The page or page element that the comment thread is anchored to. |
| Output only. The text ranges within the page element that the comment thread is anchored to. Will be empty if the comment anchor is for the entire page or page element rather than a text range within the element. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: | |
shapeTextAnchors |
Populated for |
tableCellAnchors |
Populated for |
| End of mutually exclusive fields. | |
ShapeTextAnchors
Represents text ranges within a shape covered by a comment anchor.
| JSON representation |
|---|
{
"ranges": [
{
object ( |
| Fields | |
|---|---|
ranges[] |
A list of text ranges covered by the comment anchor. |
TextRange
Specifies a contiguous range of text within a shape or table cell's text.
| JSON representation |
|---|
{ "startIndex": integer, "endIndex": integer } |
| Fields | |
|---|---|
startIndex |
The zero-based index of the beginning range. This field is an Int32Value in order to accommodate future use cases with open-ended ranges. |
endIndex |
The zero-based index of the end of the range. This field is an Int32Value in order to accommodate future use cases with open-ended ranges. |
TableCellAnchors
Represents table cell ranges within a table covered by a comment anchor.
| JSON representation |
|---|
{
"cellRanges": [
{
object ( |
| Fields | |
|---|---|
cellRanges[] |
A list of all table cells in a table that have text covered by the anchor in the table. |
TableCellTextRanges
Represents text ranges within a table cell covered by a comment anchor.
| JSON representation |
|---|
{ "cellLocation": { object ( |
| Fields | |
|---|---|
cellLocation |
The location of the table cell. |
ranges[] |
A list of all text ranges covered by the anchor in this cell. |
Methods |
|
|---|---|
|
Gets the latest version of the specified page in the presentation. |
|
Generates a thumbnail of the latest version of the specified page in the presentation and returns a URL to the thumbnail image. |