Cmdlet
Add-OfficePdfPanel
Adds a visually separated panel paragraph to a PDF document.
Syntax
Add-OfficePdfPanel
[-Alignment <OfficeAlignment>]
[-Text] <String>
[<CommonParameters>]#Parameter set:
TextAdd-OfficePdfPanel
[-Alignment <OfficeAlignment>]
-Document <PdfDocument>
[-PassThru]
[-Text] <String>
[<CommonParameters>]#Parameter set:
DocumentAdd-OfficePdfPanel
[-Alignment <OfficeAlignment>]
[-Content] <ScriptBlock>
[<CommonParameters>]#Parameter set:
ContentExamples
Add a callout panel to a report.
New-OfficePdf -Path .\Examples\Documents\PdfPanel.pdf {
Add-OfficePdfHeading -Text 'Executive summary'
Add-OfficePdfPanel -Text 'No critical incidents were detected in the current reporting window.' -Alignment Center
}Adds a highlighted panel paragraph to the generated PDF.
Parameters
- -Alignment OfficeAlignment
- Panel alignment.
- Possible values:
Left,Center,Right,Justify,Start,End - -Text String
- Panel text.
- -Document PdfDocument
- PDF document to update outside the DSL context.
- -PassThru SwitchParameter
- Emit the updated document.
- -Content ScriptBlock
- Rich PdfText child content.
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.