API Reference
Cmdlet
Set-OfficePdfHeader
Sets running PDF header text.
Remarks
Sets running PDF header text.
Examples
Add a running report header.
PS>
New-OfficePdf -Path .\Examples\Documents\PdfHeader.pdf {
Set-OfficePdfHeader -Text 'Service Review' -Align Right -FontSize 9
Add-OfficePdfHeading -Text 'Service Review'
Add-OfficePdfParagraph -Text 'The header repeats on generated pages.'
}
Sets header text for the generated PDF.
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-OfficePdfHeader [-Align <Left|Center|Right|Justify>] [-FontSize <Nullable`1>] [-PassThru] -Text <String> [<CommonParameters>]#Parameter set:
ContextParameters
- Align PdfAlign
- Header alignment.
- Possible values:
Left,Center,Right,Justify - FontSize Nullable`1
- Header font size in PDF points.
- PassThru SwitchParameter
- Emit the updated document.
- Text String
- Header text. Supports {page} and {pages}.
Outputs
OfficeIMO.Pdf.PdfDocument
Set-OfficePdfHeader [-Align <Left|Center|Right|Justify>] -Document <PdfDocument> [-FontSize <Nullable`1>] [-PassThru] -Text <String> [<CommonParameters>]#Parameter set:
DocumentParameters
- Align PdfAlign
- Header alignment.
- Possible values:
Left,Center,Right,Justify - Document PdfDocument
- PDF document to update outside the DSL context.
- FontSize Nullable`1
- Header font size in PDF points.
- PassThru SwitchParameter
- Emit the updated document.
- Text String
- Header text. Supports {page} and {pages}.
Outputs
OfficeIMO.Pdf.PdfDocument