getPageType()

Return

getPlaceholder(placeholderType)

If there are multiple placeholders with the same type, it returns the one with minimal
placeholder index. If there are multiple matching placeholders with the same index, it returns
the first placeholder from the page's page elements collection.

Parameters

Return

insertImage(blobSource)

Inserts an image at the top left corner of the page with a default size from the specified
image blob.

Inserting the image fetches it from the BlobSource once and a copy is stored for
display inside the presentation. Images must be less than 50MB in size, cannot exceed 25
megapixels, and must be in either in PNG, JPEG, or GIF format.

Parameters

Return

insertImage(blobSource, left, top, width, height)

Inserts an image on the page with the provided position and size from the specified image blob.

The image is fetched from the provided BlobSource once at insertion time and a copy
is stored for display inside the presentation. Images must be less than 50MB in size, cannot
exceed 25 megapixels, and must be in either in PNG, JPEG, or GIF format.

In order to maintain the image's aspect ratio, the image is scaled and centered with respect
to the provided size.

Parameters

Return

insertImage(imageUrl)

Inserts an image at the top left corner of the page with a default size from the provided URL.

Inserting the image fetches it from the URL once and a copy is stored for display inside the
presentation. Images must be less than 50MB in size, cannot exceed 25 megapixels, and must be
in either in PNG, JPEG, or GIF format.

The provided URL must be no larger than 2kB.

Parameters

Name

Type

Description

imageUrl

String

The image URL.

Return

insertImage(imageUrl, left, top, width, height)

Inserts an image on the page with the provided position and size from the provided URL.

Inserting the image fetches it from the URL once and a copy is stored for display inside the
presentation. Images must be less than 50MB in size, cannot exceed 25 megapixels, and must be
in either in PNG, JPEG, or GIF format.

The provided URL must be no larger than 2kB.

In order to maintain the image's aspect ratio, the image is scaled and centered with respect
to the provided size.

Parameters

Name

Type

Description

imageUrl

String

The image URL.

left

Number

The horizontal position of the image in points, measured from the upper left corner
of the page.

top

Number

The vertical position of the image in points, measured from the upper left corner of
the page.