Cmdlet
ConvertTo-OfficePdfFlatForm
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>]#Parameter set:
All Parameter SetsExamples
Flatten a filled PDF form.
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.pdfTurns simple form fields into static page content.
Parameters
- -AppearanceFontFamilyName String
- PDF font family name used for the supplied appearance font.
- -AppearanceFontPath String
- TrueType or OpenType/CFF font file used to synthesize Unicode form field appearances while flattening.
- -IgnorePermissionRestrictions SwitchParameter
- After successful password authentication, explicitly ignore owner-imposed form-modification restrictions.
- -OutputPath String
- Output PDF path.
- -Password String
- Password used to authenticate an encrypted PDF.
- -Path String
- 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.