Cmdlet
Update-OfficePdf
Flattens forms or annotations, or adds a searchable OCR text layer, writing a new PDF.
Syntax
Update-OfficePdf
[-AppearanceFont <String>]
[-AppearanceFontPath <String>]
[-FlattenAnnotation]
[-FlattenForm]
[-IgnorePermissionRestrictions]
[-LoadOptions <PdfLoadOptions>]
[-NoClobber]
-OutputPath <String>
[-PassThru]
[-Password <SecureString>]
[-Path] <String[]>
[<CommonParameters>]#Parameter set:
FlattenUpdate-OfficePdf
[-AppearanceFont <String>]
[-AppearanceFontPath <String>]
[-FlattenAnnotation]
[-FlattenForm]
[-IgnorePermissionRestrictions]
[-LoadOptions <PdfLoadOptions>]
[-NoClobber]
-OutputDirectory <String>
[-PassThru]
[-Password <SecureString>]
[-Path] <String[]>
[<CommonParameters>]#Parameter set:
FlattenDirectoryUpdate-OfficePdf
[-IgnorePermissionRestrictions]
[-LoadOptions <PdfLoadOptions>]
[-NoClobber]
[-OcrMergeOptions <PdfOcrMergeOptions>]
[-OcrOptions <OfficeOcrOptions>]
-OutputPath <String>
[-PassThru]
[-Password <SecureString>]
[-Path] <String[]>
-Searchable
[<CommonParameters>]#Parameter set:
SearchableUpdate-OfficePdf
[-IgnorePermissionRestrictions]
[-LoadOptions <PdfLoadOptions>]
[-NoClobber]
[-OcrMergeOptions <PdfOcrMergeOptions>]
[-OcrOptions <OfficeOcrOptions>]
-OutputDirectory <String>
[-PassThru]
[-Password <SecureString>]
[-Path] <String[]>
-Searchable
[<CommonParameters>]#Parameter set:
SearchableDirectoryUpdate-OfficePdf
[-AppearanceFont <String>]
[-AppearanceFontPath <String>]
[-FlattenAnnotation]
[-FlattenForm]
[-IgnorePermissionRestrictions]
-LiteralPath <String[]>
[-LoadOptions <PdfLoadOptions>]
[-NoClobber]
-OutputPath <String>
[-PassThru]
[-Password <SecureString>]
[<CommonParameters>]#Parameter set:
FlattenLiteralPathUpdate-OfficePdf
[-IgnorePermissionRestrictions]
-LiteralPath <String[]>
[-LoadOptions <PdfLoadOptions>]
[-NoClobber]
[-OcrMergeOptions <PdfOcrMergeOptions>]
[-OcrOptions <OfficeOcrOptions>]
-OutputPath <String>
[-PassThru]
[-Password <SecureString>]
-Searchable
[<CommonParameters>]#Parameter set:
SearchableLiteralPathUpdate-OfficePdf
[-AppearanceFont <String>]
[-AppearanceFontPath <String>]
[-FlattenAnnotation]
[-FlattenForm]
[-IgnorePermissionRestrictions]
-LiteralPath <String[]>
[-LoadOptions <PdfLoadOptions>]
[-NoClobber]
-OutputDirectory <String>
[-PassThru]
[-Password <SecureString>]
[<CommonParameters>]#Parameter set:
FlattenLiteralPathDirectoryUpdate-OfficePdf
[-IgnorePermissionRestrictions]
-LiteralPath <String[]>
[-LoadOptions <PdfLoadOptions>]
[-NoClobber]
[-OcrMergeOptions <PdfOcrMergeOptions>]
[-OcrOptions <OfficeOcrOptions>]
-OutputDirectory <String>
[-PassThru]
[-Password <SecureString>]
-Searchable
[<CommonParameters>]#Parameter set:
SearchableLiteralPathDirectoryExamples
Use the native OfficePdf command.
Update-OfficePdf -Path .\Forms\Access-Request-Ada.pdf -OutputPath .\Forms\Access-Request-Ada-Final.pdf -FlattenFormParameters
- -AppearanceFont String
- AppearanceFont for this operation.
- -AppearanceFontPath String
- AppearanceFontPath for this operation.
- -FlattenAnnotation SwitchParameter
- FlattenAnnotation for this operation.
- -FlattenForm SwitchParameter
- FlattenForm for this operation.
- -IgnorePermissionRestrictions SwitchParameter
- After successful authentication only; never bypasses a missing password.
- -LoadOptions PdfLoadOptions
- LoadOptions for this operation.
- -NoClobber SwitchParameter
- NoClobber for this operation.
- -OutputPath String
- OutputPath for this operation.
- -PassThru SwitchParameter
- PassThru for this operation.
- -Password SecureString
- Argument transformation also accepts a plain string (with a warning) or a PSCredential (its password).
- -Path String[]
- Path for this operation.
- -OutputDirectory String
- OutputDirectory for this operation.
- -OcrMergeOptions PdfOcrMergeOptions
- Replaces -PdfOptions.
- -OcrOptions OfficeOcrOptions
- New-OfficeOcrOptions: engine, languages, Tesseract path, data directory, DPI, confidence; same type Read-/Convert-OfficeDocument -Ocr use.
- -Searchable SwitchParameter
- Searchable for this operation.
- -LiteralPath String[]
- LiteralPath for this operation.
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.