# Import-OfficePdfXfdf

Imports bounded DTD-free XFDF through the validated PDF form filler.

Project

PSWriteOffice

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

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **725**

Forks **84**

Open issues **3**

Total downloads **5,231,343**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-23

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`System.String`

**Outputs**

`OfficeIMO.Pdf.PdfDocument`

**Source**

[ImportOfficePdfXfdfCommand.cs:13](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Pdf/ImportOfficePdfXfdfCommand.cs#L13) 

Imports bounded DTD-free XFDF through the validated PDF form filler.

## Syntax

```
Import-OfficePdfXfdf
[-IgnorePermissionRestrictions]
[-MaxXfdfBytes <Int64>]
[-Options <PdfFormFillerOptions>]
-OutputPath <String>
[-PassThru]
[-Password <String>]
[-Path] <String>
[-ReadOptions <PdfLoadOptions>]
-Xfdf <String>
[<CommonParameters>]
```

[#](#method-import-officepdfxfdf-switchparameter-int64-pdfformfilleroptions-string-switchparameter-string-string-pdfloadoptions-string)

Parameter set: `Text`

```
Import-OfficePdfXfdf
[-IgnorePermissionRestrictions]
[-MaxXfdfBytes <Int64>]
[-Options <PdfFormFillerOptions>]
-OutputPath <String>
[-PassThru]
[-Password <String>]
[-Path] <String>
[-ReadOptions <PdfLoadOptions>]
-XfdfPath <String>
[<CommonParameters>]
```

[#](#method-import-officepdfxfdf-switchparameter-int64-pdfformfilleroptions-string-switchparameter-string-string-pdfloadoptions-string-2)

Parameter set: `File`

## Examples

### Example 1

```powershell
Import-OfficePdfXfdf -Path 'C:\Path' -Xfdf 'Value' -OutputPath 'C:\Path'
```

### Example 2

```powershell
Import-OfficePdfXfdf -Path 'C:\Path' -XfdfPath 'C:\Path' -OutputPath 'C:\Path'
```

## Parameters

**-IgnorePermissionRestrictions SwitchParameter optional**

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

**-MaxXfdfBytes Int64 optional**

Maximum UTF-8 byte count accepted from an XFDF file or pipeline. Default: 4 MiB.

**-Options PdfFormFillerOptions optional**

Optional validated form filling behavior.

**-OutputPath String required**

Destination PDF path.

**-PassThru SwitchParameter optional**

Return the rewritten fluent PDF document.

**-Password String optional**

Password used to authenticate the source form.

**-Path String requiredposition: 0**

Source PDF path.

**-ReadOptions PdfLoadOptions optional**

Optional bounded PDF parsing and password settings for the source form.

**-Xfdf String requiredpipeline: True (ByValue)sets: Text**

XFDF XML.

**-XfdfPath String requiredsets: File**

Path to an XFDF file.

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

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:172AC18421AEAE4660F5538E58679B3CA0D4A8AD4A64A880DA2C4479972667C3 -->
