# New-OfficePdfTableCell

Creates a reusable PDF table cell definition for explicit table rows.

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: PdfTableCell

**Module**

`PSWriteOffice`

**Aliases**

`PdfTableCell`

**Inputs**

`None`

**Outputs**

`PSWriteOffice.Services.Table.OfficeTableCellSpec`

**Source**

[NewOfficePdfTableCellCommand.cs:19](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Pdf/NewOfficePdfTableCellCommand.cs#L19) 

Creates a reusable PDF table cell definition for explicit table rows.

## Syntax

```
New-OfficePdfTableCell
[-Align <Left|Center|Right>]
[-Bold]
[-CheckBox <PdfTableCellCheckBox[]>]
[-ColumnSpan <Int32>]
[-FillColor <String>]
[-FontSize <Double>]
[-FormField <PdfTableCellFormField[]>]
[-Image <PdfTableCellImage[]>]
[-Italic]
[-LinkContents <String>]
[-LinkDestinationName <String>]
[-LinkUri <String>]
[-NamedDestinationName <String>]
[-NoWrap]
[-RowSpan <Int32>]
[-Run <Object[]>]
[-Strike]
[[-Text] <String>]
[-TextColor <String>]
[-Underline]
[-UnderlineStyle <String>]
[-VerticalAlign <Top|Middle|Bottom>]
[<CommonParameters>]
```

[#](#member-4e8bb26dd3f694d0fc9a2db9)

Parameter set: `All Parameter Sets`

## Examples

### Create a full-width PDF table section row.

```powershell
$row = @(New-OfficePdfTableCell -Text 'Identity systems' -ColumnSpan 3 -FillColor '#DBEAFE' -TextColor '#1E3A8A' -Bold)
```

The returned cell can be passed to PdfTable inside explicit row arrays.

## Parameters

**-Align PdfColumnAlign optional**

Horizontal cell alignment.

Possible values: `Left`, `Center`, `Right`

**-Bold SwitchParameter optional**

Render the cell text in bold.

**-CheckBox PdfTableCellCheckBox[] optionalaliases: CheckBoxes**

Typed check boxes rendered inside the cell.

**-ColumnSpan Int32 optional**

Number of logical columns covered by the cell.

**-FillColor String optionalaliases: BackgroundColor, CellFill**

Cell fill color. Named colors and hexadecimal colors are accepted.

**-FontSize Double optional**

Cell font size in PDF points.

**-FormField PdfTableCellFormField[] optionalaliases: FormFields**

Typed text or choice form fields rendered inside the cell.

**-Image PdfTableCellImage[] optionalaliases: Images**

Typed images rendered inside the cell.

**-Italic SwitchParameter optional**

Render the cell text in italics.

**-LinkContents String optional**

Accessible annotation text for the cell link.

**-LinkDestinationName String optional**

Named PDF destination linked from the cell.

**-LinkUri String optional**

Absolute or catalog-base-relative URI linked from the cell.

**-NamedDestinationName String optional**

Named PDF destination defined at this cell.

**-NoWrap SwitchParameter optional**

Keep the cell content on one visual line.

**-RowSpan Int32 optional**

Number of logical rows covered by the cell.

**-Run Object[] optionalaliases: Runs**

Rich text runs for the cell. Each run can be created with TextRun/PdfTextRun or provided as a hashtable/object.

**-Strike SwitchParameter optional**

Render the cell text with strikethrough.

**-Text String optionalposition: 0**

Cell text.

**-TextColor String optionalaliases: Color, FontColor**

Cell text color. Named colors and hexadecimal colors are accepted.

**-Underline SwitchParameter optional**

Render the cell text with underline.

**-UnderlineStyle String optional**

Optional underline style name. PDF table rendering treats any supported value as underline.

**-VerticalAlign PdfCellVerticalAlign optional**

Vertical cell alignment.

Possible values: `Top`, `Middle`, `Bottom`

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

## Outputs

PSWriteOffice.Services.Table.OfficeTableCellSpec: Describes a logical table cell that can be rendered by multiple Office table surfaces.

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:F04DB12DE67A453FB9DA0620D588429E1770111B8CE72DF6E62D052CEE7CCD97 -->
