# Get-OfficePdfAnnotation

Gets page annotations and action evidence from a PDF.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

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

**Outputs**

`OfficeIMO.Pdf.PdfAnnotation`

**Source**

[GetOfficePdfAnnotationCommand.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Pdf/GetOfficePdfAnnotationCommand.cs#L12) 

Gets page annotations and action evidence from a PDF.

## Syntax

```
Get-OfficePdfAnnotation
[-IgnorePermissionRestrictions]
[-LoadOptions <PdfLoadOptions>]
[-Page <Int32>]
[-Password <SecureString>]
[-Path] <String[]>
[-Subtype <String>]
[-WithAction]
[<CommonParameters>]
```

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

Parameter set: `Path`

```
Get-OfficePdfAnnotation
[-IgnorePermissionRestrictions]
-LiteralPath <String[]>
[-LoadOptions <PdfLoadOptions>]
[-Page <Int32>]
[-Password <SecureString>]
[-Subtype <String>]
[-WithAction]
[<CommonParameters>]
```

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

Parameter set: `LiteralPath`

```
Get-OfficePdfAnnotation
-Document <PdfDocument>
[-Page <Int32>]
[-Subtype <String>]
[-WithAction]
[<CommonParameters>]
```

[#](#method-get-officepdfannotation-pdfdocument-int32-string-switchparameter)

Parameter set: `Document`

## Guides & Samples

Authored walkthroughs and practical samples linked to this command.

- [Create and Process PDF Forms and Annotations](/docs/pswriteoffice/pdf-forms-annotations/) Guide
  
  Create interactive form fields, inspect and fill existing forms, manage annotations, and flatten only when the delivery policy requires it.

## Examples

### Example 1

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

### Example 2

```powershell
Get-OfficePdfAnnotation -Document 'Value'
```

### Example 3

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

## Parameters

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

After successful password authentication, explicitly ignore owner-imposed usage restrictions.

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

Bounded input load settings.

**-Page Int32 optional**

Optional one-based page number filter.

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

Password used to inspect a Standard password-encrypted PDF.

**-Path String[] requiredposition: 0pipeline: True (ByValue)sets: Path**

PDF input paths; supports wildcards.

**-Subtype String optional**

Optional annotation subtype filter such as Text, Link, Widget, or FreeText.

**-WithAction SwitchParameter optional**

Return only annotations with actions, additional actions, or chained actions.

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

Exact PDF paths, including literal brackets.

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

Caller-owned live PDF; inspection never disposes it.

## 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:6AC4AAB5AE17F7CB4D94EE36CFABB7800FA36B4537936A95171594E6A326FC41 -->
