Cmdlet
Add-OfficePdfText
Adds one styled run inside a PDF paragraph or running header/footer, or a standalone paragraph.
Syntax
Add-OfficePdfText
[-Alignment <OfficeAlignment>]
[-BackgroundColor <OfficeColor>]
[-Baseline <Normal| Superscript| Subscript>]
[-Bold]
[-Color <OfficeColor>]
[-Font <String>]
[-Italic]
[-Link <String>]
[-LinkBookmark <String>]
[-LinkContents <String>]
[-Size <OfficeLength>]
[-Strikethrough]
[-TabAlignment <Left| Right| Center| DecimalSeparator| Bar>]
[-TabLeader <Dots| Hyphens| Underscores>]
[-Text] <String>
[-Underline <OfficeTextDecorationStyle>]
[<CommonParameters>]#Parameter set:
ContextAdd-OfficePdfText
[-Alignment <OfficeAlignment>]
[-BackgroundColor <OfficeColor>]
[-Baseline <Normal| Superscript| Subscript>]
[-Bold]
[-Color <OfficeColor>]
-Document <PdfDocument>
[-Font <String>]
[-Italic]
[-Link <String>]
[-LinkBookmark <String>]
[-LinkContents <String>]
[-PassThru]
[-Size <OfficeLength>]
[-Strikethrough]
[-TabAlignment <Left| Right| Center| DecimalSeparator| Bar>]
[-TabLeader <Dots| Hyphens| Underscores>]
[-Text] <String>
[-Underline <OfficeTextDecorationStyle>]
[<CommonParameters>]#Parameter set:
DocumentExamples
Compose rich PDF text.
PdfParagraph { PdfText 'Review ' -Italic; PdfText 'complete' -Bold -Color Success }Parameters
- -Alignment OfficeAlignment
- Standalone paragraph alignment.
- Possible values:
Left,Center,Right,Justify,Start,End - -BackgroundColor OfficeColor
- Run background color.
- -Baseline PdfTextBaseline
- Run baseline.
- Possible values:
Normal,Superscript,Subscript - -Bold SwitchParameter
- Set bold on or off.
- -Color OfficeColor
- Run foreground color.
- -Font String
- Standard PDF font name or registered embedded family.
- -Italic SwitchParameter
- Set italic on or off.
- -Link String
- URI hyperlink target.
- -LinkBookmark String
- Named bookmark target.
- -LinkContents String
- Link annotation contents.
- -Size OfficeLength
- Font size; bare numbers mean points.
- -Strikethrough SwitchParameter
- Set strikethrough on or off.
- -TabAlignment PdfTabAlignment
- Alignment for an explicit tab text.
- Possible values:
Left,Right,Center,DecimalSeparator,Bar - -TabLeader PdfTabLeaderStyle
- Leader pattern for an explicit tab text (a single tab character).
- Possible values:
Dots,Hyphens,Underscores - -Text String
- Text for this run.
- -Underline OfficeTextDecorationStyle
- Underline pattern; None clears it.
- Possible values:
Single,Double,Dotted,Dashed,Wavy,Words - -Document PdfDocument
- Live PDF outside a composition block.
- -PassThru SwitchParameter
- Emit the updated live document.
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.