Cmdlet
New-OfficePdfSignature
Prepare external PDF signature using native byte-range and signature-placeholder operations.
Syntax
New-OfficePdfSignature
[-ContactInfo <String>]
[-FieldName <String>]
[-Filter <String>]
[-IgnorePermissionRestrictions]
[-LoadOptions <PdfLoadOptions>]
[-Location <String>]
[-Name <String>]
-OutputPath <String>
[-PassThru]
[-Password <SecureString>]
[-Path] <String[]>
[-Reason <String>]
[-ReservedSize <Int32>]
[-SubFilter <DetachedCms| CadesDetached| DocumentTimestamp>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]#Parameter set:
PathNew-OfficePdfSignature
[-ContactInfo <String>]
[-FieldName <String>]
[-Filter <String>]
[-IgnorePermissionRestrictions]
[-LoadOptions <PdfLoadOptions>]
[-Location <String>]
[-Name <String>]
-OutputDirectory <String>
[-PassThru]
[-Password <SecureString>]
[-Path] <String[]>
[-Reason <String>]
[-ReservedSize <Int32>]
[-SubFilter <DetachedCms| CadesDetached| DocumentTimestamp>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]#Parameter set:
PathDirectoryNew-OfficePdfSignature
[-ContactInfo <String>]
[-FieldName <String>]
[-Filter <String>]
[-IgnorePermissionRestrictions]
-LiteralPath <String[]>
[-LoadOptions <PdfLoadOptions>]
[-Location <String>]
[-Name <String>]
-OutputPath <String>
[-PassThru]
[-Password <SecureString>]
[-Reason <String>]
[-ReservedSize <Int32>]
[-SubFilter <DetachedCms| CadesDetached| DocumentTimestamp>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]#Parameter set:
LiteralPathNew-OfficePdfSignature
[-ContactInfo <String>]
[-FieldName <String>]
[-Filter <String>]
[-IgnorePermissionRestrictions]
-LiteralPath <String[]>
[-LoadOptions <PdfLoadOptions>]
[-Location <String>]
[-Name <String>]
-OutputDirectory <String>
[-PassThru]
[-Password <SecureString>]
[-Reason <String>]
[-ReservedSize <Int32>]
[-SubFilter <DetachedCms| CadesDetached| DocumentTimestamp>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]#Parameter set:
LiteralPathDirectoryDescription
Confirmation precedes loading, native mutation and output creation. This command does not obtain certificates or private keys.
Examples
Example 1
New-OfficePdfSignature -Path @('C:\Path') -OutputPath 'C:\Path'Example 2
New-OfficePdfSignature -OutputPath 'C:\Path' -LiteralPath @('C:\Path')Example 3
New-OfficePdfSignature -OutputDirectory 'Value' -LiteralPath @('C:\Path')Parameters
- -ContactInfo String
- ContactInfo setting.
- -FieldName String
- FieldName setting.
- -Filter String
- Filter setting.
- -IgnorePermissionRestrictions SwitchParameter
- IgnorePermissionRestrictions setting.
- -LoadOptions PdfLoadOptions
- Native parsing, authentication and resource policy.
- -Location String
- Location setting.
- -Name String
- Name setting.
- -OutputPath String
- Single-file destination.
- -PassThru SwitchParameter
- Return native annotation edit reports.
- -Password SecureString
- Password setting.
- -Path String[]
- Input PDF paths with wildcard expansion.
- -Reason String
- Reason setting.
- -ReservedSize Int32
- ReservedSize setting.
- -SubFilter PdfExternalSignatureSubFilter
- SubFilter setting.
- Possible values:
DetachedCms,CadesDetached,DocumentTimestamp - -WhatIf SwitchParameter
- Shows what would happen if the command runs.
- -Confirm SwitchParameter
- Prompts for confirmation before running the command.
- -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.