Project

PSWriteOffice

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

Stars 654
Forks 82
Open issues 1
Total downloads 4,320,051
Release OfficeIMO-v3.5.3
Language: C# Updated: 2026-11-03
Cmdlet

New-OfficePdfTableCellField

Aliases: PdfTableCellField
Module
PSWriteOffice
Aliases
PdfTableCellField
Inputs
None
Outputs
OfficeIMO.Pdf.PdfTableCellFormField

Creates a typed text or choice field for a PDF table cell.

Syntax

New-OfficePdfTableCellField
[-FontSize <Double>]
[-Height <Double>]
[-Name] <String>
[[-Value] <String>]
[-Width <Double>]
[<CommonParameters>]
#
Parameter set: Text
New-OfficePdfTableCellField
[-FontSize <Double>]
[-Height <Double>]
[-ListBox]
[-Name] <String>
-Option <String[]>
[[-Value] <String>]
[-Width <Double>]
[<CommonParameters>]
#
Parameter set: Choice

Examples

Create a reviewer choice field for a typed PDF table cell.

$reviewer = New-OfficePdfTableCellField -Name Reviewer -Option 'Unassigned', 'Alice', 'Bob' -Value 'Unassigned'
$cell = New-OfficePdfTableCell -Text 'Reviewer' -FormField $reviewer

The choice field is positioned by the OfficeIMO PDF table renderer.

Parameters

-FontSize Double optional
Field font size in PDF points.
-Height Double optional
Rendered field height in PDF points.
-Name String requiredposition: 0
Unique AcroForm field name.
-Value String optionalposition: 1
Initial field value.
-Width Double optional
Rendered field width in PDF points.
-ListBox SwitchParameter optionalsets: Choice
Render a choice field as a list box instead of a combo box.
-Option String[] requiredsets: Choice
Available values for a choice field.

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.