API Reference
Cmdlet
ConvertTo-OfficePdfFlatForm
Converts a PDF with simple AcroForm fields into a flat PDF.
Remarks
Converts a PDF with simple AcroForm fields into a flat PDF.
Examples
Flatten a filled PDF form.
PS>
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.
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.
Syntax
ConvertTo-OfficePdfFlatForm [-AppearanceFontFamilyName <String>] [-AppearanceFontPath <String>] -OutputPath <String> -Path <String> [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- 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.
- OutputPath String
- Output PDF path.
- Path String
- Input PDF path.
Outputs
System.IO.FileInfo