Cmdlet
Set-OfficePdfBackground
Sets or clears color, image and shape backgrounds in the enclosing PDF composition.
Syntax
Set-OfficePdfBackground
[-Color] <OfficeColor>
[<CommonParameters>]#Parameter set:
ColorSet-OfficePdfBackground
[-Fit <Stretch| Contain| Cover>]
-ImagePath <String>
[-Opacity <Double>]
[<CommonParameters>]#Parameter set:
ImageSet-OfficePdfBackground
-Clear
[-Target <All| Color| Image| Shapes>]
[<CommonParameters>]#Parameter set:
ClearExamples
Example 1
Set-OfficePdfBackground -Color 'Value'Example 2
Set-OfficePdfBackground -ClearExample 3
Set-OfficePdfBackground -ImagePath 'C:\Path'Parameters
- -Color OfficeColor
- Background color.
- -Fit OfficeImageFit
- How the background image fits the page.
- Possible values:
Stretch,Contain,Cover - -ImagePath String
- Literal background image path.
- -Opacity Double
- Background image opacity.
- -Clear SwitchParameter
- Clear the selected background decoration.
- -Target OfficePdfBackgroundTarget
- Background decorations to clear.
- Possible values:
All,Color,Image,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.