API Reference
Cmdlet
Set-OfficePdfPageBorder
Sets or clears the generated PDF page border decoration.
Remarks
Sets or clears the generated PDF page border decoration.
Examples
Add a subtle page border.
PS>
New-OfficePdf -Path .\Examples\Documents\PdfPageBorder.pdf {
Set-OfficePdfPageBorder -Color '#CBD5E1' -Width 0.75 -Inset 24 -Opacity 0.8
Add-OfficePdfHeading -Text 'Bordered report'
}
Decorates generated pages with an OfficeIMO.Pdf page border.
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.
Syntax
Set-OfficePdfPageBorder [-Clear] [-Color <String>] [-DashStyle <Solid|Dash|Dot|DashDot|DashDotDot>] [-Inset <Nullable`1>] [-Opacity <Nullable`1>] [-PassThru] [-Width <Nullable`1>] [<CommonParameters>]#Parameter set:
ContextParameters
- Clear SwitchParameter
- Clear the generated PDF page border decoration.
- Color String
- Border color in #RRGGBB format.
- DashStyle OfficeStrokeDashStyle
- Border dash style.
- Possible values:
Solid,Dash,Dot,DashDot,DashDotDot - Inset Nullable`1
- Distance from the page edge to the border path in PDF points.
- Opacity Nullable`1
- Border opacity from 0 through 1.
- PassThru SwitchParameter
- Emit the updated document.
- Width Nullable`1
- Border stroke width in PDF points.
Outputs
OfficeIMO.Pdf.PdfDocument
Set-OfficePdfPageBorder [-Clear] [-Color <String>] [-DashStyle <Solid|Dash|Dot|DashDot|DashDotDot>] -Document <PdfDocument> [-Inset <Nullable`1>] [-Opacity <Nullable`1>] [-PassThru] [-Width <Nullable`1>] [<CommonParameters>]#Parameter set:
DocumentParameters
- Clear SwitchParameter
- Clear the generated PDF page border decoration.
- Color String
- Border color in #RRGGBB format.
- DashStyle OfficeStrokeDashStyle
- Border dash style.
- Possible values:
Solid,Dash,Dot,DashDot,DashDotDot - Document PdfDocument
- PDF document to update outside the DSL context.
- Inset Nullable`1
- Distance from the page edge to the border path in PDF points.
- Opacity Nullable`1
- Border opacity from 0 through 1.
- PassThru SwitchParameter
- Emit the updated document.
- Width Nullable`1
- Border stroke width in PDF points.
Outputs
OfficeIMO.Pdf.PdfDocument