# Set-OfficePdfPageSetup

Sets physical dimensions, orientation and margins in the enclosing PDF composition.

Cmdlet 

Aliases: PdfPageSetup

**Module**

`PSWriteOffice`

**Aliases**

`PdfPageSetup`

**Inputs**

`None`

**Source**

[SetOfficePdfPageSetupCommand.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Pdf/SetOfficePdfPageSetupCommand.cs#L12) 

Sets physical dimensions, orientation and margins in the enclosing PDF composition.

## Syntax

```
Set-OfficePdfPageSetup
[-Height <OfficeLength>]
[-Margin <OfficeLength>]
[-MarginBottom <OfficeLength>]
[-MarginLeft <OfficeLength>]
[-MarginRight <OfficeLength>]
[-MarginTop <OfficeLength>]
[-Orientation <Portrait|Landscape>]
[-PageSize <OfficePageSize>]
[-Width <OfficeLength>]
[<CommonParameters>]
```

[#](#method-set-officepdfpagesetup-officelength-officelength-officelength-officelength-officelength-officelength-officepageorientation-officepagesize-officelength)

Parameter set: `Context`

## Examples

### Example 1

```powershell
Set-OfficePdfPageSetup -Height 'Value'
```

## Parameters

**-Height OfficeLength optional**

Custom page height.

**-Margin OfficeLength optional**

Uniform margin.

**-MarginBottom OfficeLength optional**

Bottom margin.

**-MarginLeft OfficeLength optional**

Left margin.

**-MarginRight OfficeLength optional**

Right margin.

**-MarginTop OfficeLength optional**

Top margin.

**-Orientation OfficePageOrientation optional**

Page orientation.

Possible values: `Portrait`, `Landscape`

**-PageSize OfficePageSize optional**

Named paper size or physical page dimensions.

**-Width OfficeLength optional**

Custom page width.

## 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).

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