# ConvertTo-OfficePdfFlatForm

Converts a PDF with simple AcroForm fields into a flat PDF.

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 **727**

Forks **84**

Open issues **7**

Total downloads **5,275,783**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-24

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`System.String`

**Outputs**

`System.IO.FileInfo`

**Source**

[ConvertToOfficePdfFlatFormCommand.cs:21](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Pdf/ConvertToOfficePdfFlatFormCommand.cs#L21) 

Converts a PDF with simple AcroForm fields into a flat PDF.

## Syntax

```
ConvertTo-OfficePdfFlatForm
[-AppearanceFontFamilyName <String>]
[-AppearanceFontPath <String>]
[-IgnorePermissionRestrictions]
[-OutputPath] <String>
[-Password <String>]
[-Path] <String>
[<CommonParameters>]
```

[#](#method-convertto-officepdfflatform-string-string-switchparameter-string-string-string)

Parameter set: `All Parameter Sets`

## Examples

### Flatten a filled PDF form.

```powershell
Set-OfficePdfForm -Path .\Examples\Documents\Request.pdf -OutputPath .\Examples\Documents\Request-Filled.pdf -Field @{
    Requester = 'Ada Lovelace'
    Priority = 'High'
}
ConvertTo-OfficePdfFlatForm -Path .\Examples\Documents\Request-Filled.pdf -OutputPath .\Examples\Documents\Request-Flat.pdf
```

Turns simple form fields into static page content.

## Parameters

**-AppearanceFontFamilyName String optional**

PDF font family name used for the supplied appearance font.

**-AppearanceFontPath String optional**

TrueType or OpenType/CFF font file used to synthesize Unicode form field appearances while flattening.

**-IgnorePermissionRestrictions SwitchParameter optional**

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

**-OutputPath String requiredposition: 1**

Output PDF path.

**-Password String optional**

Password used to authenticate an encrypted PDF.

**-Path String requiredposition: 0pipeline: True (ByValue)aliases: FilePath**

Input PDF path.

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