Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Add-OfficePdfRow

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

Adds a row of side-by-side PdfColumn blocks.

Syntax

Add-OfficePdfRow
[-ColumnSeparatorColor <OfficeColor>]
[-ColumnSeparatorWidth <OfficeLength>]
[-Content] <ScriptBlock>
[-Gap <OfficeLength>]
[-KeepTogether]
[-KeepWithNext]
[-SpacingAfter <OfficeLength>]
[-SpacingBefore <OfficeLength>]
[<CommonParameters>]
#
Parameter set: Context
Add-OfficePdfRow
[-ColumnSeparatorColor <OfficeColor>]
[-ColumnSeparatorWidth <OfficeLength>]
[-Content] <ScriptBlock>
-Document <PdfDocument>
[-Gap <OfficeLength>]
[-KeepTogether]
[-KeepWithNext]
[-PassThru]
[-SpacingAfter <OfficeLength>]
[-SpacingBefore <OfficeLength>]
[<CommonParameters>]
#
Parameter set: Document

Examples

Use the native OfficePdfRow command.

New-OfficePdf -Path .\TwoColumns.pdf {
    PdfRow {
        PdfColumn { PdfParagraph 'Left column' }
        PdfColumn { PdfParagraph 'Right column' }
    }
}

Parameters

-ColumnSeparatorColor OfficeColor optional
ColumnSeparatorColor for this operation.
-ColumnSeparatorWidth OfficeLength optional
ColumnSeparatorWidth for this operation.
-Content ScriptBlock requiredposition: 0
Content for this operation.
-Gap OfficeLength optional
Gap for this operation.
-KeepTogether SwitchParameter optional
KeepTogether for this operation.
-KeepWithNext SwitchParameter optional
KeepWithNext for this operation.
-SpacingAfter OfficeLength optional
SpacingAfter for this operation.
-SpacingBefore OfficeLength optional
SpacingBefore for this operation.
-Document PdfDocument requiredpipeline: True (ByValue)sets: Document
Document for this operation.
-PassThru SwitchParameter optionalsets: Document
Document set only; inside a block the document is returned by New-OfficePdf.

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.