Working with Slide Properties

Introduction

With Aspose.Slides Cloud API, you have the flexibility to customize various aspects of your slides to suit your presentation needs. Here are key properties that you can change:

  • Slide Numbers: You can change the slide numbering if needed.

  • Slide Orientation: You can choose between portrait and landscape orientations for your slides, which can be especially useful when designing different types of documents, such as reports or brochures.

  • Content Scaling: When you resize a slide, you can choose whether to scale the content proportionally to fit the new dimensions. This ensures that your text and images remain legible and visually appealing.

  • Slide Size Options: There is a variety of standard slide sizes, such as widescreen (16:9), standard (4:3), and many others, which are suitable for different display devices and resolutions. You can select the one that best fits your presentation requirements.

  • Custom Slide Sizes: For more specialized needs, you can create custom slide sizes. This allows you to define precise dimensions for your slides, giving you full control over the layout and design.

Customizing these properties empowers you to create presentations that are tailored to your content and the specific requirements of your audience or distribution platform.

API Information

API Type Description Resource
/slides/{name}/slideProperties GET Reads information about slide properties. GetSlideProperties
/slides/{name}/slideProperties PUT Sets slide properties for a presentation. SetSlideProperties

Request Parameters

GetSlideProperties
Name Type Location Required Description
name string path true The name of a presentation file.
password string header false The password to open the presentation.
folder string query false The path to the folder containing the presentation.
storage string query false The name of the storage contaning the folder.
SetSlideProperties
Name Type Location Required Description
name string path true The name of a presentation file.
dto SlideProperties body true The data transfer object with slide properties.
password string header false The password to open the presentation.
folder string query false The path to the folder containing the presentation.
storage string query false The name of the storage contaning the folder.

Parameter Types

SlideProperties
Name Type Description
FirstSlideNumber integer The number for the first slide.
Height integer The height of slides.
Orientation OrientationEnum The orientation of slides.
ScaleType ScaleTypeEnum The scale type for slide content.
SizeType SizeTypeEnum The standard type of the slide size.
Width integer The width of slides.
OrientationEnum
Name Description
Landscape The horizontal orientation of slides.
Portrait The vertical orientation of slides.
ScaleTypeEnum
Name Description
DoNotScale Do not scale slide content.
EnsureFit Scale slide content to ensure fit.
Maximize Maximize the size of slide content.
SizeTypeEnum
Name Description
OnScreen Standard (4:3 aspect ratio).
LetterPaper Letter Paper (8.5 x 11 in).
A4Paper A4 Paper (210 x 297 mm).
Slide35mm 35 mm Slides.
Overhead Overhead (10 x 7.5 in).
Banner Banner (8 x 1 in).
Custom The size is specified by the Height and Width parameters in SlideProperties.
Ledger Ledger Paper (11 x 17 in).
A3Paper A3 Paper (297 x 420 mm).
B4IsoPaper B4 (ISO) Paper (250 x 353mm).
B5IsoPaper B5 (ISO) Paper (176 x 250mm).
B4JisPaper B4 (Jis) Paper (257 x 364 mm).
B5JisPaper B5 (Jis) Paper (182 x 257 mm).
HagakiCard Hagaki (3.9 x 5.8 in).
OnScreen16x9 Standard (16:9 aspect ratio).
OnScreen16x10 Standard (16:10 aspect ratio).
Widescreen Widescreen (16:9 aspect ratio).

Examples

A MyPresentation.pptx document contains slides with the Widescreen size. Set the slide size to Standard (4:3) and scale the content down to ensure it will fit on slides. Read slide properties from the presentation.

cURL Solution

SDK Solutions

Result

Result

SDKs

Check Available SDKs to learn how to add an SDK to your project.