# Add-OfficePdfRow

Adds a row of side-by-side PdfColumn blocks. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteOffice Cmdlet Reference.

Cmdlet 

Aliases: PdfRow

**Module**

`PSWriteOffice`

**Aliases**

`PdfRow`

**Inputs**

`OfficeIMO.Pdf.PdfDocument`

**Outputs**

`OfficeIMO.Pdf.PdfDocument`

**Source**

[AddOfficePdfRowCommand.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Pdf/AddOfficePdfRowCommand.cs#L21) 

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>]
```

[#](#method-add-officepdfrow-officecolor-officelength-scriptblock-officelength-switchparameter-switchparameter-officelength-officelength)

Parameter set: `Context`

```
Add-OfficePdfRow
[-ColumnSeparatorColor <OfficeColor>]
[-ColumnSeparatorWidth <OfficeLength>]
[-Content] <ScriptBlock>
-Document <PdfDocument>
[-Gap <OfficeLength>]
[-KeepTogether]
[-KeepWithNext]
[-PassThru]
[-SpacingAfter <OfficeLength>]
[-SpacingBefore <OfficeLength>]
[<CommonParameters>]
```

[#](#method-add-officepdfrow-officecolor-officelength-scriptblock-pdfdocument-officelength-switchparameter-switchparameter-switchparameter-officelength-officelength)

Parameter set: `Document`

## Examples

### Use the native OfficePdfRow command.

```powershell
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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

<!-- PowerForge markdown artifact sha256:5F1E3AABAB083F7FC5647EE63714DF5E83A5B75B47084F143E334707F2860BFA -->
