Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Set-OfficePdfSignature

Module
PSWriteOffice
Inputs
System.String[]
Outputs
System.IO.FileInfo OfficeIMO.Pdf.PdfSignatureValidationReport

Complete external PDF signature using native byte-range and signature-placeholder operations.

Syntax

Set-OfficePdfSignature
[-IgnorePermissionRestrictions]
[-LoadOptions <PdfLoadOptions>]
-OutputPath <String>
[-PassThru]
[-Password <SecureString>]
[-Path] <String[]>
-SignaturePath <String>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
#
Parameter set: Path
Set-OfficePdfSignature
[-IgnorePermissionRestrictions]
[-LoadOptions <PdfLoadOptions>]
-OutputDirectory <String>
[-PassThru]
[-Password <SecureString>]
[-Path] <String[]>
-SignaturePath <String>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
#
Parameter set: PathDirectory
Set-OfficePdfSignature
[-IgnorePermissionRestrictions]
-LiteralPath <String[]>
[-LoadOptions <PdfLoadOptions>]
-OutputPath <String>
[-PassThru]
[-Password <SecureString>]
-SignaturePath <String>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
#
Parameter set: LiteralPath
Set-OfficePdfSignature
[-IgnorePermissionRestrictions]
-LiteralPath <String[]>
[-LoadOptions <PdfLoadOptions>]
-OutputDirectory <String>
[-PassThru]
[-Password <SecureString>]
-SignaturePath <String>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
#
Parameter set: LiteralPathDirectory

Description

Confirmation precedes loading, native mutation and output creation. This command does not obtain certificates or private keys.

Examples

Example 1

Set-OfficePdfSignature -Path @('C:\Path') -OutputPath 'C:\Path' -SignaturePath 'C:\Path'

Example 2

Set-OfficePdfSignature -OutputPath 'C:\Path' -SignaturePath 'C:\Path' -LiteralPath @('C:\Path')

Example 3

Set-OfficePdfSignature -SignaturePath 'C:\Path' -OutputDirectory 'Value' -LiteralPath @('C:\Path')

Parameters

-IgnorePermissionRestrictions SwitchParameter optional
IgnorePermissionRestrictions setting.
-LoadOptions PdfLoadOptions optional
Native parsing, authentication and resource policy.
-OutputPath String requiredsets: Path, LiteralPath
Single-file destination.
-PassThru SwitchParameter optional
Return native annotation edit reports.
-Password SecureString optional
Password setting.
-Path String[] requiredposition: 0sets: Path, PathDirectory
Input PDF paths with wildcard expansion.
-SignaturePath String required
SignaturePath setting.
-WhatIf SwitchParameter optional
Shows what would happen if the command runs.
-Confirm SwitchParameter optional
Prompts for confirmation before running the command.
-OutputDirectory String requiredsets: PathDirectory, LiteralPathDirectory
Batch destination retaining source names.
-LiteralPath String[] requiredpipeline: True (ByPropertyName)aliases: FullName, PSPathsets: LiteralPath, LiteralPathDirectory
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.