Feature Launch: Add New Page and Get Page Dimensions

addPage API is now fully launched, so if you’ve been working on apps that use it, these can now be published.

This release adds the following new methods to support Adding New Pages:

  • design.addPage, which allows adding a page with pre-populated elements. See docs here.
  • design.getDefaultPageDimensions which retrieves the default dimensions of a new page in the design. See docs here.

:trophy: One improvement from the preview release: we’ve added background and title properties which let you set the background and title of the new page. We appreciate everyone who took the time to try the new methods in preview and provide feedback!

You can rebase or clone the starter kit repo to find the latest examples for working with Adding a Page. :heavy_plus_sign: :page_with_curl:

See the docs for the addPage method and getDefaultPageDimensions method for full details. We look forward to seeing the apps you create with this!

3 Likes

Wondering if you’ll provide the ability to change the dimensions of the pages that are being added?

Hi @badshah, that would be more aligned with the the design resize capability, where the whole design would get the new dimensions. Canva Designs cannot have pages with different dimensions. If this is a feature that would be beneficial to your app, go ahead and raise it in the Feature Requests area so others can vote to help us understand prioritization.