# Export-OfficePdfXfdf

Exports native PDF form values as XFDF XML or atomically published XFDF files.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

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

**Outputs**

`System.String` `System.IO.FileInfo`

**Source**

[ExportOfficePdfXfdfCommand.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Pdf/ExportOfficePdfXfdfCommand.cs#L14) 

Exports native PDF form values as XFDF XML or atomically published XFDF files.

## Syntax

```
Export-OfficePdfXfdf
[-Document <PdfDocument>]
[-NoClobber]
[-PassThru]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
```

[#](#method-export-officepdfxfdf-pdfdocument-switchparameter-switchparameter-switchparameter-switchparameter)

Parameter set: `Document`

```
Export-OfficePdfXfdf
[-IgnorePermissionRestrictions]
[-LoadOptions <PdfLoadOptions>]
[-NoClobber]
[-OutputPath <String>]
[-PassThru]
[-Password <SecureString>]
[-Path] <String[]>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
```

[#](#method-export-officepdfxfdf-switchparameter-pdfloadoptions-switchparameter-string-switchparameter-securestring-string-switchparameter-switchparameter)

Parameter set: `Path`

```
Export-OfficePdfXfdf
[-IgnorePermissionRestrictions]
[-LoadOptions <PdfLoadOptions>]
[-NoClobber]
-OutputDirectory <String>
[-PassThru]
[-Password <SecureString>]
[-Path] <String[]>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
```

[#](#method-export-officepdfxfdf-switchparameter-pdfloadoptions-switchparameter-string-switchparameter-securestring-string-switchparameter-switchparameter-2)

Parameter set: `PathDirectory`

```
Export-OfficePdfXfdf
[-IgnorePermissionRestrictions]
-LiteralPath <String[]>
[-LoadOptions <PdfLoadOptions>]
[-NoClobber]
[-OutputPath <String>]
[-PassThru]
[-Password <SecureString>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
```

[#](#method-export-officepdfxfdf-switchparameter-string-pdfloadoptions-switchparameter-string-switchparameter-securestring-switchparameter-switchparameter)

Parameter set: `LiteralPath`

```
Export-OfficePdfXfdf
[-IgnorePermissionRestrictions]
-LiteralPath <String[]>
[-LoadOptions <PdfLoadOptions>]
[-NoClobber]
-OutputDirectory <String>
[-PassThru]
[-Password <SecureString>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
```

[#](#method-export-officepdfxfdf-switchparameter-string-pdfloadoptions-switchparameter-string-switchparameter-securestring-switchparameter-switchparameter-2)

Parameter set: `LiteralPathDirectory`

## Guides & Samples

Authored walkthroughs and practical samples linked to this command.

- [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

### Export each form in a folder.

```powershell
Export-OfficePdfXfdf -Path './Forms/*.pdf' -OutputDirectory ./Values -NoClobber -PassThru
```

## Parameters

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

Native caller-owned PDF; omission uses the enclosing content block.

**-NoClobber SwitchParameter optional**

NoClobber setting.

**-PassThru SwitchParameter optional**

Return native annotation edit reports.

**-WhatIf SwitchParameter optional**

Shows what would happen if the command runs.

**-Confirm SwitchParameter optional**

Prompts for confirmation before running the command.

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

IgnorePermissionRestrictions setting.

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

Native parsing, authentication and resource policy.

**-OutputPath String optionalsets: Path, LiteralPath**

Single-file destination.

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

Password setting.

**-Path String[] requiredposition: 0sets: Path, PathDirectory**

Input PDF paths with wildcard expansion.

**-OutputDirectory String requiredsets: PathDirectory, LiteralPathDirectory**

Batch destination retaining source names.

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

Literal input PDF paths; accepts FileInfo.FullName.

## 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:AA0ECAA8E452059B7342D6CDDB96B6E8BAAD0776E4E43D189D16052FF05686ED -->
