Cmdlet
Set-OfficePdfHeader
Composes running PDF Header text, child runs or the native builder inside New-OfficePdf.
Syntax
Set-OfficePdfHeader
[-Alignment <OfficeAlignment>]
[-EvenPage]
[-FirstPage]
[-Size <OfficeLength>]
[-Text] <String>
[<CommonParameters>]#Parameter set:
TextSet-OfficePdfHeader
[-Alignment <OfficeAlignment>]
[-Content] <ScriptBlock>
[-EvenPage]
[-FirstPage]
[-Size <OfficeLength>]
[<CommonParameters>]#Parameter set:
ContentSet-OfficePdfHeader
-Compose <ScriptBlock>
[<CommonParameters>]#Parameter set:
BuilderExamples
Add a styled running Header.
New-OfficePdf ./Report.pdf { PdfHeader { PdfText 'Internal' -Italic }; PdfParagraph 'Report' }Parameters
- -Alignment OfficeAlignment
- Text alignment.
- Possible values:
Left,Center,Right,Justify,Start,End - -EvenPage SwitchParameter
- Configure the even page variant.
- -FirstPage SwitchParameter
- Configure the first page variant.
- -Size OfficeLength
- Text size; bare numbers mean points.
- -Text String
- Running text supporting {page} and {pages} tokens.
- -Content ScriptBlock
- Styled PdfText child commands.
- -Compose ScriptBlock
- Advanced native Header builder, passed as the script argument.
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.