Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Set-OfficePdfPageSetup

Aliases: PdfPageSetup
Module
PSWriteOffice
Aliases
PdfPageSetup
Inputs
None

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: Context

Examples

Example 1

Set-OfficePdfPageSetup -Height 'Value'

Parameters

-Height OfficeLength optional
Custom page height.
-Margin OfficeLength optional
Uniform margin.
-MarginBottom OfficeLength optional
Bottom margin.
-MarginLeft OfficeLength optional
Left margin.
-MarginRight OfficeLength optional
Right margin.
-MarginTop OfficeLength optional
Top margin.
-Orientation OfficePageOrientation optional
Page orientation.
Possible values: Portrait, Landscape
-PageSize OfficePageSize optional
Named paper size or physical page dimensions.
-Width OfficeLength optional
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.