API Reference
Cmdlet
New-OfficePdfTableCellField
Creates a typed text or choice field for a PDF table cell.
Remarks
Creates a typed text or choice field for a PDF table cell.
Examples
Example 1: Create a reviewer choice field for a typed PDF table cell.
PS>
$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.
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.
Syntax
New-OfficePdfTableCellField [-FontSize <Double>] [-Height <Double>] -Name <String> [-Value <String>] [-Width <Double>] [<CommonParameters>]#Parameter set:
TextParameters
- FontSize Double
- Field font size in PDF points.
- Height Double
- Rendered field height in PDF points.
- Name String
- Unique AcroForm field name.
- Value String
- Initial field value.
- Width Double
- Rendered field width in PDF points.
Outputs
OfficeIMO.Pdf.PdfTableCellFormField
New-OfficePdfTableCellField [-FontSize <Double>] [-Height <Double>] [-ListBox] -Name <String> -Option <String[]> [-Value <String>] [-Width <Double>] [<CommonParameters>]#Parameter set:
ChoiceParameters
- FontSize Double
- Field font size in PDF points.
- Height Double
- Rendered field height in PDF points.
- ListBox SwitchParameter
- Render a choice field as a list box instead of a combo box.
- Name String
- Unique AcroForm field name.
- Option String[]
- Available values for a choice field.
- Value String
- Initial field value.
- Width Double
- Rendered field width in PDF points.
Outputs
OfficeIMO.Pdf.PdfTableCellFormField