Cmdlet
Remove-OfficePdfAnnotation
Removes native annotations selected by identity, page and subtype.
Syntax
Remove-OfficePdfAnnotation
[-Document <PdfDocument>]
[-KeepPopups]
[-ObjectNumber <Int32>]
[-Page <Int32>]
[-PassThru]
[-Subtype <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]#Parameter set:
DocumentRemove-OfficePdfAnnotation
[-IgnorePermissionRestrictions]
[-KeepPopups]
[-LoadOptions <PdfLoadOptions>]
[-ObjectNumber <Int32>]
-OutputPath <String>
[-Page <Int32>]
[-PassThru]
[-Password <SecureString>]
[-Path] <String[]>
[-Subtype <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]#Parameter set:
PathRemove-OfficePdfAnnotation
[-IgnorePermissionRestrictions]
[-KeepPopups]
[-LoadOptions <PdfLoadOptions>]
[-ObjectNumber <Int32>]
-OutputDirectory <String>
[-Page <Int32>]
[-PassThru]
[-Password <SecureString>]
[-Path] <String[]>
[-Subtype <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]#Parameter set:
PathDirectoryRemove-OfficePdfAnnotation
[-IgnorePermissionRestrictions]
[-KeepPopups]
-LiteralPath <String[]>
[-LoadOptions <PdfLoadOptions>]
[-ObjectNumber <Int32>]
-OutputPath <String>
[-Page <Int32>]
[-PassThru]
[-Password <SecureString>]
[-Subtype <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]#Parameter set:
LiteralPathRemove-OfficePdfAnnotation
[-IgnorePermissionRestrictions]
[-KeepPopups]
-LiteralPath <String[]>
[-LoadOptions <PdfLoadOptions>]
[-ObjectNumber <Int32>]
-OutputDirectory <String>
[-Page <Int32>]
[-PassThru]
[-Password <SecureString>]
[-Subtype <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]#Parameter set:
LiteralPathDirectoryDescription
Native confirmation runs before loading or editing a file. Live inputs stay caller-owned; a replacement document is adopted by the enclosing content block or returned for explicit assignment. PassThru returns native edit reports.
Examples
Example 1
Remove-OfficePdfAnnotation -Document 'Value'Example 2
Remove-OfficePdfAnnotation -OutputPath 'C:\Path' -LiteralPath @('C:\Path')Example 3
Remove-OfficePdfAnnotation -OutputDirectory 'Value' -LiteralPath @('C:\Path')Parameters
- -Document PdfDocument
- Native caller-owned PDF; omission uses the enclosing content block.
- -KeepPopups SwitchParameter
- KeepPopups setting.
- -ObjectNumber Int32
- ObjectNumber setting.
- -Page Int32
- Page setting.
- -PassThru SwitchParameter
- Return native annotation edit reports.
- -Subtype String
- Subtype setting.
- -WhatIf SwitchParameter
- Shows what would happen if the command runs.
- -Confirm SwitchParameter
- Prompts for confirmation before running the command.
- -IgnorePermissionRestrictions SwitchParameter
- IgnorePermissionRestrictions setting.
- -LoadOptions PdfLoadOptions
- Native parsing, authentication and resource policy.
- -OutputPath String
- Single-file destination.
- -Password SecureString
- Password setting.
- -Path String[]
- Input PDF paths with wildcard expansion.
- -OutputDirectory String
- Batch destination retaining source names.
- -LiteralPath String[]
- Literal input PDF paths; accepts FileInfo.FullName.
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.