# Set-OfficePdfSignature

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

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`System.String[]`

**Outputs**

`System.IO.FileInfo` `OfficeIMO.Pdf.PdfSignatureValidationReport`

**Source**

[SetOfficePdfSignatureCommand.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Pdf/SetOfficePdfSignatureCommand.cs#L14) 

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>]
```

[#](#method-set-officepdfsignature-switchparameter-pdfloadoptions-string-switchparameter-securestring-string-string-switchparameter-switchparameter)

Parameter set: `Path`

```
Set-OfficePdfSignature
[-IgnorePermissionRestrictions]
[-LoadOptions <PdfLoadOptions>]
-OutputDirectory <String>
[-PassThru]
[-Password <SecureString>]
[-Path] <String[]>
-SignaturePath <String>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
```

[#](#method-set-officepdfsignature-switchparameter-pdfloadoptions-string-switchparameter-securestring-string-string-switchparameter-switchparameter-2)

Parameter set: `PathDirectory`

```
Set-OfficePdfSignature
[-IgnorePermissionRestrictions]
-LiteralPath <String[]>
[-LoadOptions <PdfLoadOptions>]
-OutputPath <String>
[-PassThru]
[-Password <SecureString>]
-SignaturePath <String>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
```

[#](#method-set-officepdfsignature-switchparameter-string-pdfloadoptions-string-switchparameter-securestring-string-switchparameter-switchparameter)

Parameter set: `LiteralPath`

```
Set-OfficePdfSignature
[-IgnorePermissionRestrictions]
-LiteralPath <String[]>
[-LoadOptions <PdfLoadOptions>]
-OutputDirectory <String>
[-PassThru]
[-Password <SecureString>]
-SignaturePath <String>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
```

[#](#method-set-officepdfsignature-switchparameter-string-pdfloadoptions-string-switchparameter-securestring-string-switchparameter-switchparameter-2)

Parameter set: `LiteralPathDirectory`

## Description

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

## Guides & Samples

Authored walkthroughs and practical samples linked to this command.

- [Inspect PDF Signatures and Compliance](/docs/pswriteoffice/pdf-signatures-compliance/) Guide
  
  Collect signature structure, compliance, diagnostics, and rewrite-preservation evidence before accepting or transforming a PDF.

## Examples

### Example 1

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

### Example 2

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

### Example 3

```powershell
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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

<!-- PowerForge markdown artifact sha256:FC851F84B5FEC704163C68D6F5B7D1A1D3C34F91C580BEEA79EE82B77A81A175 -->
