# New-OfficePdfTableCell

Creates a native PDF cell containing text, images or form fields.

Cmdlet 

Aliases: PdfTableCell

**Module**

`PSWriteOffice`

**Aliases**

`PdfTableCell`

**Inputs**

`None`

**Outputs**

`PSWriteOffice.Services.Table.OfficeTableCellSpec`

**Source**

[NewOfficePdfTableCellCommand.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Pdf/NewOfficePdfTableCellCommand.cs#L15) 

Creates a native PDF cell containing text, images or form fields.

## Syntax

```
New-OfficePdfTableCell
[-Alignment <OfficeAlignment>]
[-BackgroundColor <OfficeColor>]
[-Bold]
[-Bookmark <String>]
[-Color <OfficeColor>]
[-ColumnSpan <Int32>]
[-Italic]
[-Link <String>]
[-LinkBookmark <String>]
[-LinkContents <String>]
[-NoWrap]
[-RowSpan <Int32>]
[-Size <OfficeLength>]
[-Strikethrough]
[[-Text] <String>]
[-Underline <OfficeTextDecorationStyle>]
[-VerticalAlignment <Top|Center|Bottom>]
[<CommonParameters>]
```

[#](#member-abce27cb8d5b037751f14390)

Parameter set: `Text`

```
New-OfficePdfTableCell
[-Alignment <OfficeAlignment>]
[-BackgroundColor <OfficeColor>]
[-Bookmark <String>]
[-Color <OfficeColor>]
[-ColumnSpan <Int32>]
[-Content] <ScriptBlock>
[-NoWrap]
[-RowSpan <Int32>]
[-Size <OfficeLength>]
[-VerticalAlignment <Top|Center|Bottom>]
[<CommonParameters>]
```

[#](#method-new-officepdftablecell-officealignment-officecolor-string-officecolor-int32-scriptblock-switchparameter-int32-officelength-officetextverticalalignment)

Parameter set: `Content`

## Examples

### Example 1

```powershell
New-OfficePdfTableCell -Alignment 'Value'
```

### Example 2

```powershell
New-OfficePdfTableCell -Content { }
```

## Parameters

**-Alignment OfficeAlignment optional**

Alignment for this content.

Possible values: `Left`, `Center`, `Right`, `Justify`, `Start`, `End`

**-BackgroundColor OfficeColor optional**

BackgroundColor for this content.

**-Bold SwitchParameter optionalsets: Text**

Bold for this content.

**-Bookmark String optional**

Bookmark for this content.

**-Color OfficeColor optional**

Color for this content.

**-ColumnSpan Int32 optional**

ColumnSpan for this content.

**-Italic SwitchParameter optionalsets: Text**

Italic for this content.

**-Link String optionalsets: Text**

Link for this content.

**-LinkBookmark String optionalsets: Text**

LinkBookmark for this content.

**-LinkContents String optionalsets: Text**

LinkContents for this content.

**-NoWrap SwitchParameter optional**

NoWrap for this content.

**-RowSpan Int32 optional**

RowSpan for this content.

**-Size OfficeLength optional**

Size for this content.

**-Strikethrough SwitchParameter optionalsets: Text**

Strikethrough for this content.

**-Text String optionalposition: 0sets: Text**

Text for this content.

**-Underline OfficeTextDecorationStyle optionalsets: Text**

Underline for this content.

Possible values: `Single`, `Double`, `Dotted`, `Dashed`, `Wavy`, `Words`

**-VerticalAlignment OfficeTextVerticalAlignment optional**

VerticalAlignment for this content.

Possible values: `Top`, `Center`, `Bottom`

**-Content ScriptBlock requiredposition: 0sets: Content**

Content for this 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](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.

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