Cmdlet
Set-OfficePdfPageSetup
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>]#Parameter set:
ContextExamples
Example 1
Set-OfficePdfPageSetup -Height 'Value'Parameters
- -Height OfficeLength
- Custom page height.
- -Margin OfficeLength
- Uniform margin.
- -MarginBottom OfficeLength
- Bottom margin.
- -MarginLeft OfficeLength
- Left margin.
- -MarginRight OfficeLength
- Right margin.
- -MarginTop OfficeLength
- Top margin.
- -Orientation OfficePageOrientation
- Page orientation.
- Possible values:
Portrait,Landscape - -PageSize OfficePageSize
- Named paper size or physical page dimensions.
- -Width OfficeLength
- 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.