- 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
- 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. |
Union field properties . Properties that are specific for each page type. Masters do not require any additional properties. properties can be only one of the following: |
|
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. |
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 |
Union field element_kind . The kind of element that this PageElement represents. Each message contains any properties that are specific to that kind of page element. element_kind can be only one of the following: |
|
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. |
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 |
Union field kind . The kind of background fill. kind can be only one of the following: |
|
solidFill |
Solid color fill. |
stretchedPictureFill |
Stretched picture fill. |
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. |
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. |