# Set-OfficePowerPointSlideSize

Sets the slide size for a PowerPoint presentation. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteOffice API Reference.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **725**

Forks **84**

Open issues **3**

Total downloads **5,231,343**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-23

Cmdlet 

Aliases: PptSlideSize

**Module**

`PSWriteOffice`

**Aliases**

`PptSlideSize`

**Inputs**

`OfficeIMO.PowerPoint.PowerPointPresentation`

**Outputs**

`OfficeIMO.PowerPoint.PowerPointSlideSize`

**Source**

[SetOfficePowerPointSlideSizeCommand.cs:31](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/PowerPoint/SetOfficePowerPointSlideSizeCommand.cs#L31) 

Sets the slide size for a PowerPoint presentation.

## Syntax

```
Set-OfficePowerPointSlideSize
[-PassThru]
[-Portrait]
[-Presentation <PowerPointPresentation>]
-Preset <Screen4x3|Screen16x9|Screen16x10>
[<CommonParameters>]
```

[#](#method-set-officepowerpointslidesize-switchparameter-switchparameter-powerpointpresentation-powerpointslidesizepreset)

Parameter set: `Preset`

```
Set-OfficePowerPointSlideSize
-HeightCm <Double>
[-PassThru]
[-Presentation <PowerPointPresentation>]
-WidthCm <Double>
[<CommonParameters>]
```

[#](#method-set-officepowerpointslidesize-double-switchparameter-powerpointpresentation-double)

Parameter set: `Centimeters`

```
Set-OfficePowerPointSlideSize
-HeightInches <Double>
[-PassThru]
[-Presentation <PowerPointPresentation>]
-WidthInches <Double>
[<CommonParameters>]
```

[#](#method-set-officepowerpointslidesize-double-switchparameter-powerpointpresentation-double-2)

Parameter set: `Inches`

```
Set-OfficePowerPointSlideSize
-HeightPoints <Double>
[-PassThru]
[-Presentation <PowerPointPresentation>]
-WidthPoints <Double>
[<CommonParameters>]
```

[#](#method-set-officepowerpointslidesize-double-switchparameter-powerpointpresentation-double-3)

Parameter set: `Points`

```
Set-OfficePowerPointSlideSize
-HeightEmus <Int64>
[-PassThru]
[-Presentation <PowerPointPresentation>]
-WidthEmus <Int64>
[<CommonParameters>]
```

[#](#method-set-officepowerpointslidesize-int64-switchparameter-powerpointpresentation-int64)

Parameter set: `Emus`

## Description

Supports common presets as well as explicit width and height in centimeters, inches, points, or EMUs.

## Examples

### Set a standard widescreen presentation size.

```powershell
New-OfficePowerPoint -Path .\Examples\Documents\PowerPointWidescreen.pptx {
    Set-OfficePowerPointSlideSize -Preset Screen16x9
    Add-OfficePowerPointSlide -Layout 1 -PassThru | Set-OfficePowerPointSlideTitle -Title 'Widescreen deck'
}
```

Applies the 16:9 widescreen preset before adding slides.

### Set a custom size in centimeters.

```powershell
$ppt = New-OfficePowerPoint -Path .\Examples\Documents\PowerPointCustomSize.pptx -NoSave
Set-OfficePowerPointSlideSize -Presentation $ppt -WidthCm 25.4 -HeightCm 14.0
Add-OfficePowerPointSlide -Presentation $ppt -Layout 1 -PassThru | Set-OfficePowerPointSlideTitle -Title 'Custom size'
$ppt | Close-OfficePowerPoint -Save
```

Sets the presentation slide size to a custom 25.4 x 14.0 cm layout.

## Parameters

**-PassThru SwitchParameter optional**

Emit the object created or changed by the command.

**-Portrait SwitchParameter optionalsets: Preset**

Apply the preset in portrait orientation.

**-Presentation PowerPointPresentation optionalpipeline: True (ByValue)**

Presentation to update (optional inside New-OfficePowerPoint).

**-Preset PowerPointSlideSizePreset requiredsets: Preset**

Preset slide size to apply.

Possible values: `Screen4x3`, `Screen16x9`, `Screen16x10`

**-HeightCm Double requiredsets: Centimeters**

Custom slide height in centimeters.

**-WidthCm Double requiredsets: Centimeters**

Custom slide width in centimeters.

**-HeightInches Double requiredsets: Inches**

Custom slide height in inches.

**-WidthInches Double requiredsets: Inches**

Custom slide width in inches.

**-HeightPoints Double requiredsets: Points**

Custom slide height in points.

**-WidthPoints Double requiredsets: Points**

Custom slide width in points.

**-HeightEmus Int64 requiredsets: Emus**

Custom slide height in EMUs.

**-WidthEmus Int64 requiredsets: Emus**

Custom slide width in EMUs.

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:C04AB303188298FCE9AF387D6882D138AC1F6B943142DA8056BD08E1EA3A15B6 -->
