# Get-OfficePdfSignature

Reports signature fields, byte ranges, DocMDP, DSS/LTV evidence and preservation markers.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Pdf.PdfDocument` `System.String[]`

**Outputs**

`OfficeIMO.Pdf.PdfSignatureValidationReport`

**Source**

[GetOfficePdfSignatureCommand.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Pdf/GetOfficePdfSignatureCommand.cs#L13) 

Reports signature fields, byte ranges, DocMDP, DSS/LTV evidence and preservation markers.

## Syntax

```
Get-OfficePdfSignature
[-IgnorePermissionRestrictions]
[-LoadOptions <PdfLoadOptions>]
[-Password <SecureString>]
[-Path] <String[]>
[<CommonParameters>]
```

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

Parameter set: `Path`

```
Get-OfficePdfSignature
[-IgnorePermissionRestrictions]
-LiteralPath <String[]>
[-LoadOptions <PdfLoadOptions>]
[-Password <SecureString>]
[<CommonParameters>]
```

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

Parameter set: `LiteralPath`

```
Get-OfficePdfSignature
-Document <PdfDocument>
[<CommonParameters>]
```

[#](#method-get-officepdfsignature-pdfdocument)

Parameter set: `Document`

## 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.
- [Encrypt, Decrypt, and Sign PDFs](/docs/pdf/encrypt-sign/) Guide
  
  Encrypt PDFs with passwords and permissions, decrypt protected files, sign with a certificate and validate signatures with OfficeIMO.Pdf.

## Examples

### Example 1

```powershell
Get-OfficePdfSignature -Path @('C:\Path')
```

### Example 2

```powershell
Get-OfficePdfSignature -Document 'Value'
```

### Example 3

```powershell
Get-OfficePdfSignature -LiteralPath @('C:\Path')
```

## Parameters

**-IgnorePermissionRestrictions SwitchParameter optionalsets: Path, LiteralPath**

IgnorePermissionRestrictions for PDF inspection or extraction.

**-LoadOptions PdfLoadOptions optionalsets: Path, LiteralPath**

LoadOptions for PDF inspection or extraction.

**-Password SecureString optionalsets: Path, LiteralPath**

Password for PDF inspection or extraction.

**-Path String[] requiredposition: 0sets: Path**

Path for PDF inspection or extraction.

**-LiteralPath String[] requiredpipeline: True (ByPropertyName)aliases: FullName, PSPathsets: LiteralPath**

LiteralPath for PDF inspection or extraction.

**-Document PdfDocument requiredpipeline: True (ByValue)sets: Document**

Document for PDF inspection or extraction.

## 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:40526B4898D05F2DDABDAD9DC3ECDECCAADE4FAADA6EBA5379A97C89510BA924 -->
