# Get-OfficePdfFormField

Gets simple AcroForm fields from a PDF. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteOffice Cmdlet Reference.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Pdf.PdfDocument` `System.String[]`

**Outputs**

`OfficeIMO.Pdf.PdfFormField`

**Source**

[GetOfficePdfFormFieldCommand.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Pdf/GetOfficePdfFormFieldCommand.cs#L20) 

Gets simple AcroForm fields from a PDF.

## Syntax

```
Get-OfficePdfFormField
[-IgnorePermissionRestrictions]
[-LoadOptions <PdfLoadOptions>]
[-Name <String>]
[-Password <SecureString>]
[-Path] <String[]>
[<CommonParameters>]
```

[#](#method-get-officepdfformfield-switchparameter-pdfloadoptions-string-securestring-string)

Parameter set: `Path`

```
Get-OfficePdfFormField
[-IgnorePermissionRestrictions]
-LiteralPath <String[]>
[-LoadOptions <PdfLoadOptions>]
[-Name <String>]
[-Password <SecureString>]
[<CommonParameters>]
```

[#](#method-get-officepdfformfield-switchparameter-string-pdfloadoptions-string-securestring)

Parameter set: `LiteralPath`

```
Get-OfficePdfFormField
-Document <PdfDocument>
[-Name <String>]
[<CommonParameters>]
```

[#](#method-get-officepdfformfield-pdfdocument-string)

Parameter set: `Document`

## Guides & Samples

Authored walkthroughs and practical samples linked to this command.

- [Create and Process PDF Forms and Annotations](/docs/pswriteoffice/pdf-forms-annotations/) Guide
  
  Create interactive form fields, inspect and fill existing forms, manage annotations, and flatten only when the delivery policy requires it.
- [Fill and Flatten PDF Forms](/docs/pdf/forms/) Guide
  
  List AcroForm fields, fill them by name, flatten the result, exchange XFDF data, and add form fields to new PDFs with OfficeIMO.Pdf and PSWriteOffice.

## Examples

### Inspect fields before filling a form.

```powershell
Get-OfficePdfFormField -Path .\Examples\Documents\Request.pdf |
    Select-Object Name, FieldType, Value
Set-OfficePdfForm -Path .\Examples\Documents\Request.pdf -OutputPath .\Examples\Documents\Request-Filled.pdf -Field @{ Requester = 'Ada Lovelace' }
```

Reads form field names so the fill hashtable can use the right keys.

## Parameters

**-IgnorePermissionRestrictions SwitchParameter optionalsets: Path, LiteralPath**

After successful password authentication, explicitly ignore owner-imposed usage restrictions.

**-LoadOptions PdfLoadOptions optionalsets: Path, LiteralPath**

Bounded input load settings.

**-Name String optional**

Optional field name filter.

**-Password SecureString optionalsets: Path, LiteralPath**

Password used to inspect a Standard password-encrypted PDF.

**-Path String[] requiredposition: 0pipeline: True (ByValue)sets: Path**

PDF input paths; supports wildcards.

**-LiteralPath String[] requiredpipeline: True (ByPropertyName)aliases: FullName, PSPathsets: LiteralPath**

Exact PDF paths, including literal brackets.

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

Caller-owned live PDF; inspection never disposes it.

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

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