class SlidesApp method .getPageHeight()

SlidesApp is the Apps Script service.

.getPageHeight() is the method name you will see after a dot in your code.

What it does

Returns the height of a slide in points.

Why it's used

  • Scale content to the full slide canvas.
  • Build diagrams that align to the real slide size.

Common errors

  • Forgetting parentheses on getPageHeight. Write SlidesApp.getPageHeight(), not SlidesApp.getPageHeight or getPageHeight by itself.
  • Skipping dots between chained calls. Each step needs a dot, like SlidesApp.getPageHeight().
  • Adding spaces where they do not belong. Write SlidesApp.getPageHeight(), not SlidesApp .getPageHeight(), SlidesApp.getPageHeight (), or SlidesApp . getPageHeight().
  • Wrong capitalization. Use SlidesApp and getPageHeight, not slidesapp or getpageheight.

Explore

Related methods

Better Sheets tutorials

No tagged tutorials yet. Fetch Apps Script from the harvest table and this page fills automatically.

Related blog posts

Written guides about SlidesApp.getPageHeight().

Browse the blog