Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Add-OfficePdfPanel

Aliases: PdfPanel
Module
PSWriteOffice
Aliases
PdfPanel
Inputs
OfficeIMO.Pdf.PdfDocument
Outputs
OfficeIMO.Pdf.PdfDocument

Adds a visually separated panel paragraph to a PDF document.

Syntax

Add-OfficePdfPanel
[-Alignment <OfficeAlignment>]
[-Text] <String>
[<CommonParameters>]
#
Parameter set: Text
Add-OfficePdfPanel
[-Alignment <OfficeAlignment>]
-Document <PdfDocument>
[-PassThru]
[-Text] <String>
[<CommonParameters>]
#
Parameter set: Document
Add-OfficePdfPanel
[-Alignment <OfficeAlignment>]
[-Content] <ScriptBlock>
[<CommonParameters>]
#
Parameter set: Content

Examples

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 optional
Panel alignment.
Possible values: Left, Center, Right, Justify, Start, End
-Text String requiredposition: 0sets: Text, Document
Panel text.
-Document PdfDocument requiredpipeline: True (ByValue)sets: Document
PDF document to update outside the DSL context.
-PassThru SwitchParameter optionalsets: Document
Emit the updated document.
-Content ScriptBlock requiredposition: 0sets: Content
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.