# Add-OfficePdfRow

Adds a semantic row with percentage-based columns to a generated PDF document.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **725**

Forks **84**

Open issues **3**

Total downloads **5,231,343**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-23

Cmdlet 

Aliases: PdfRow

**Module**

`PSWriteOffice`

**Aliases**

`PdfRow`

**Inputs**

`OfficeIMO.Pdf.PdfDocument`

**Outputs**

`OfficeIMO.Pdf.PdfDocument`

**Source**

[AddOfficePdfRowCommand.cs:48](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Pdf/AddOfficePdfRowCommand.cs#L48) 

Adds a semantic row with percentage-based columns to a generated PDF document.

## Syntax

```
Add-OfficePdfRow
[-Column] <Object[]>
[-ColumnSeparatorColor <String>]
[-ColumnSeparatorWidth <Double>]
[-Gap <Double>]
[-KeepTogether]
[-KeepWithNext]
[-PassThru]
[-SpacingAfter <Double>]
[-SpacingBefore <Double>]
[<CommonParameters>]
```

[#](#method-add-officepdfrow-object-string-double-double-switchparameter-switchparameter-switchparameter-double-double)

Parameter set: `Context`

```
Add-OfficePdfRow
[-Column] <Object[]>
[-ColumnSeparatorColor <String>]
[-ColumnSeparatorWidth <Double>]
-Document <PdfDocument>
[-Gap <Double>]
[-KeepTogether]
[-KeepWithNext]
[-PassThru]
[-SpacingAfter <Double>]
[-SpacingBefore <Double>]
[<CommonParameters>]
```

[#](#method-add-officepdfrow-object-string-double-pdfdocument-double-switchparameter-switchparameter-switchparameter-double-double)

Parameter set: `Document`

## Description

Rows are intended for report-style layouts where two or more content groups should sit beside each other in the normal PDF flow. Column widths are percentages and default to an even split. Column content may use headings, paragraphs, panels, lists, tables, horizontal rules, spacers, bookmarks, or rich Run/Runs text specifications.

## Examples

### Create a two-column report row.

```powershell
New-OfficePdf -Path .\Report.pdf {
  PdfRow -Gap 16 -Column @(
    @{ Width = 35; Content = @(
      @{ Type = 'Heading'; Level = 2; Text = 'Signals' }
      @{ Type = 'List'; Items = @('Healthy', 'Watch', 'Needs action') }
    ) }
    @{ Width = 65; Content = @(
      @{ Type = 'Panel'; Text = 'Right-side callout content.' }
    ) }
  )
}
```

Adds a row with list content on the left and a panel on the right.

### Use rich text inside a row column.

```powershell
New-OfficePdf -Path .\Report.pdf {
  PdfBookmark 'details'
  PdfRow -Column @(
    @{ Content = @(
      @{ Type = 'Paragraph'; Run = @(
        @{ Text = 'Jump to ' }
        @{ Text = 'details'; LinkDestinationName = 'details'; Color = '#7C3AED' }
      ) }
    ) }
  )
}
```

Uses the same rich run model as Add-OfficePdfText inside a row layout.

## Parameters

**-Column Object[] requiredposition: 0**

Column specifications. Each entry may define Width and Content, or shorthand values such as Heading, Paragraph, Run, Panel, List, Table, Rule, Spacer, and Bookmark.

**-ColumnSeparatorColor String optional**

Optional vertical separator color between columns.

**-ColumnSeparatorWidth Double optional**

Optional vertical separator width in PDF points.

**-Gap Double optional**

Horizontal gutter between columns in PDF points.

**-KeepTogether SwitchParameter optional**

Keep the row together when possible.

**-KeepWithNext SwitchParameter optional**

Keep the row with the next visible block when possible.

**-PassThru SwitchParameter optional**

Emit the updated document.

**-SpacingAfter Double optional**

Vertical spacing after the row in PDF points.

**-SpacingBefore Double optional**

Vertical spacing before the row in PDF points.

**-Document PdfDocument requiredpipeline: True (ByValue)sets: Document**

PDF document to update outside the DSL context.

## 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).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:4ABFBF6F8D307A71CF1E14CDC00C9D2EDFCF21C95FB01FCB81417CDFADE0CC9F -->
