# Add-OfficePdfSpacer

Adds invisible vertical spacing to a generated PDF document.

Cmdlet 

Aliases: PdfSpacer

**Module**

`PSWriteOffice`

**Aliases**

`PdfSpacer`

**Inputs**

`OfficeIMO.Pdf.PdfDocument`

**Outputs**

`OfficeIMO.Pdf.PdfDocument`

**Source**

[AddOfficePdfSpacerCommand.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Pdf/AddOfficePdfSpacerCommand.cs#L23) 

Adds invisible vertical spacing to a generated PDF document.

## Syntax

```
Add-OfficePdfSpacer
[-Height] <OfficeLength>
[<CommonParameters>]
```

[#](#method-add-officepdfspacer-officelength)

Parameter set: `Context`

```
Add-OfficePdfSpacer
-Document <PdfDocument>
[-Height] <OfficeLength>
[-PassThru]
[<CommonParameters>]
```

[#](#method-add-officepdfspacer-pdfdocument-officelength-switchparameter)

Parameter set: `Document`

## Examples

### Add vertical rhythm between sections.

```powershell
New-OfficePdf -Path .\Examples\Documents\PdfSpacer.pdf {
    Add-OfficePdfHeading -Text 'Summary'
    Add-OfficePdfParagraph -Text 'First block.'
    Add-OfficePdfSpacer -Height 18
    Add-OfficePdfParagraph -Text 'Second block after additional spacing.'
}
```

Adds whitespace without adding visible content.

## Parameters

**-Height OfficeLength requiredposition: 0**

Vertical space height in PDF points.

**-Document PdfDocument requiredpipeline: True (ByValue)sets: Document**

PDF document to update outside the DSL context.

**-PassThru SwitchParameter optionalsets: Document**

Emit the updated document.

## 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:C34663B9277C18FE962B686FF0795EC69D1A13395799643C9AA0DC9776220C6F -->
