# Add-OfficePdfPanel

Adds a visually separated panel paragraph to a PDF document.

Cmdlet 

Aliases: PdfPanel

**Module**

`PSWriteOffice`

**Aliases**

`PdfPanel`

**Inputs**

`OfficeIMO.Pdf.PdfDocument`

**Outputs**

`OfficeIMO.Pdf.PdfDocument`

**Source**

[AddOfficePdfPanelCommand.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Pdf/AddOfficePdfPanelCommand.cs#L21) 

Adds a visually separated panel paragraph to a PDF document.

## Syntax

```
Add-OfficePdfPanel
[-Alignment <OfficeAlignment>]
[-Text] <String>
[<CommonParameters>]
```

[#](#method-add-officepdfpanel-officealignment-string)

Parameter set: `Text`

```
Add-OfficePdfPanel
[-Alignment <OfficeAlignment>]
-Document <PdfDocument>
[-PassThru]
[-Text] <String>
[<CommonParameters>]
```

[#](#method-add-officepdfpanel-officealignment-pdfdocument-switchparameter-string)

Parameter set: `Document`

```
Add-OfficePdfPanel
[-Alignment <OfficeAlignment>]
[-Content] <ScriptBlock>
[<CommonParameters>]
```

[#](#method-add-officepdfpanel-officealignment-scriptblock)

Parameter set: `Content`

## Examples

### Add a callout panel to a report.

```powershell
New-OfficePdf -Path .\Examples\Documents\PdfPanel.pdf {
    Add-OfficePdfHeading -Text 'Executive summary'
    Add-OfficePdfPanel -Text 'No critical incidents were detected in the current reporting window.' -Alignment Center
}
```

Adds a highlighted panel paragraph to the generated PDF.

## Parameters

**-Alignment OfficeAlignment optional**

Panel alignment.

Possible values: `Left`, `Center`, `Right`, `Justify`, `Start`, `End`

**-Text String requiredposition: 0sets: Text, Document**

Panel text.

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

PDF document to update outside the DSL context.

**-PassThru SwitchParameter optionalsets: Document**

Emit the updated document.

**-Content ScriptBlock requiredposition: 0sets: Content**

Rich PdfText child content.

## 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:8E309C18DEA838148C5FF9D59450B105C90463B46676AA9513D4D911F503760A -->
