# Add-OfficePdfBackgroundShape

Adds a decorative generated PDF page background shape or band.

Cmdlet 

Aliases: PdfBackgroundShape

**Module**

`PSWriteOffice`

**Aliases**

`PdfBackgroundShape`

**Inputs**

`None`

**Source**

[AddOfficePdfBackgroundShapeCommand.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Pdf/AddOfficePdfBackgroundShapeCommand.cs#L27) 

Adds a decorative generated PDF page background shape or band.

## Syntax

```
Add-OfficePdfBackgroundShape
[-CornerRadius <OfficeLength>]
[-FillColor <OfficeColor>]
[-FillOpacity <Double>]
[-Height <OfficeLength>]
[-InsetX <OfficeLength>]
[-InsetY <OfficeLength>]
[-OffsetX <OfficeLength>]
[-OffsetY <OfficeLength>]
[-Shape] <OfficePdfBackgroundShapeType>
[-StrokeColor <OfficeColor>]
[-StrokeOpacity <Double>]
[-StrokeWidth <OfficeLength>]
[-Width <OfficeLength>]
[-X <OfficeLength>]
[-Y <OfficeLength>]
[<CommonParameters>]
```

[#](#member-65685c2304502c96009dd945)

Parameter set: `Context`

## Description

Background shapes are intended for subtle page structure such as header bands, side bands, highlight panels, or decorative accents. They are rendered behind generated content and should usually use restrained opacity values.

## Examples

### Add a header band and accent ellipse.

```powershell
New-OfficePdf -Path .\Report.pdf {
  PdfBackgroundShape -Shape TopBand -Height 86 -FillColor '#DBEAFE' -FillOpacity 0.75
  PdfBackgroundShape -Shape Ellipse -X 420 -Y 650 -Width 96 -Height 72 -FillColor '#99F6E4' -FillOpacity 0.35
  PdfHeading 'Styled report'
}
```

Creates a polished generated page background without hand-drawing PDF primitives.

## Parameters

**-CornerRadius OfficeLength optional**

Rounded rectangle or band corner radius in PDF points.

**-FillColor OfficeColor optional**

Fill color. Named colors and hexadecimal values are accepted.

**-FillOpacity Double optional**

Fill opacity from 0 to 1.

**-Height OfficeLength optional**

Shape height in PDF points, or band height for top/bottom bands.

**-InsetX OfficeLength optional**

Horizontal inset for top/bottom bands in PDF points.

**-InsetY OfficeLength optional**

Vertical inset for left/right bands in PDF points.

**-OffsetX OfficeLength optional**

Horizontal offset for left/right bands in PDF points.

**-OffsetY OfficeLength optional**

Vertical offset for top/bottom bands in PDF points.

**-Shape OfficePdfBackgroundShapeType requiredposition: 0**

Shape type to add.

Possible values: `Rectangle`, `RoundedRectangle`, `Ellipse`, `TopBand`, `BottomBand`, `LeftBand`, `RightBand`

**-StrokeColor OfficeColor optional**

Stroke color. Named colors and hexadecimal values are accepted.

**-StrokeOpacity Double optional**

Stroke opacity from 0 to 1.

**-StrokeWidth OfficeLength optional**

Stroke width in PDF points.

**-Width OfficeLength optional**

Shape width in PDF points, or band width for left/right bands.

**-X OfficeLength optional**

Shape left coordinate in PDF points for explicit shapes.

**-Y OfficeLength optional**

Shape bottom coordinate in PDF points for explicit shapes.

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