# Get-OfficePdfRedactionPlan

Previews explicit, literal-text or bounded regular-expression redaction selections without changing PDF content.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`System.String[]`

**Outputs**

`OfficeIMO.Pdf.PdfRedactionPlan`

**Source**

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

Previews explicit, literal-text or bounded regular-expression redaction selections without changing PDF content.

## Syntax

```
Get-OfficePdfRedactionPlan
[-CaseSensitive]
[-IgnorePermissionRestrictions]
[-LoadOptions <PdfLoadOptions>]
[-Password <SecureString>]
[-Path] <String[]>
-Text <String[]>
[<CommonParameters>]
```

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

Parameter set: `Text`

```
Get-OfficePdfRedactionPlan
[-CaseSensitive]
[-IgnorePermissionRestrictions]
[-LoadOptions <PdfLoadOptions>]
[-Password <SecureString>]
[-Path] <String[]>
-Pattern <String[]>
[<CommonParameters>]
```

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

Parameter set: `Pattern`

```
Get-OfficePdfRedactionPlan
-Area <PdfRedactionArea[]>
[-IgnorePermissionRestrictions]
[-LoadOptions <PdfLoadOptions>]
[-Password <SecureString>]
[-Path] <String[]>
[<CommonParameters>]
```

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

Parameter set: `Area`

```
Get-OfficePdfRedactionPlan
-Height <OfficeLength>
[-IgnorePermissionRestrictions]
[-Label <String>]
[-LoadOptions <PdfLoadOptions>]
-Page <Int32>
[-Password <SecureString>]
[-Path] <String[]>
-Width <OfficeLength>
-X <OfficeLength>
-Y <OfficeLength>
[<CommonParameters>]
```

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

Parameter set: `Rectangle`

```
Get-OfficePdfRedactionPlan
[-CaseSensitive]
[-IgnorePermissionRestrictions]
-LiteralPath <String[]>
[-LoadOptions <PdfLoadOptions>]
[-Password <SecureString>]
-Text <String[]>
[<CommonParameters>]
```

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

Parameter set: `TextLiteralPath`

```
Get-OfficePdfRedactionPlan
[-CaseSensitive]
[-IgnorePermissionRestrictions]
-LiteralPath <String[]>
[-LoadOptions <PdfLoadOptions>]
[-Password <SecureString>]
-Pattern <String[]>
[<CommonParameters>]
```

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

Parameter set: `PatternLiteralPath`

```
Get-OfficePdfRedactionPlan
-Area <PdfRedactionArea[]>
[-IgnorePermissionRestrictions]
-LiteralPath <String[]>
[-LoadOptions <PdfLoadOptions>]
[-Password <SecureString>]
[<CommonParameters>]
```

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

Parameter set: `AreaLiteralPath`

```
Get-OfficePdfRedactionPlan
-Height <OfficeLength>
[-IgnorePermissionRestrictions]
[-Label <String>]
-LiteralPath <String[]>
[-LoadOptions <PdfLoadOptions>]
-Page <Int32>
[-Password <SecureString>]
-Width <OfficeLength>
-X <OfficeLength>
-Y <OfficeLength>
[<CommonParameters>]
```

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

Parameter set: `RectangleLiteralPath`

## Guides & Samples

Authored walkthroughs and practical samples linked to this command.

- [Redact, Sanitize, and Optimize PDF Files](/docs/pswriteoffice/pdf-redact-sanitize/) Guide
  
  Remove sensitive content by detected coordinates, sanitize interactive structures, and optimize a verified delivery copy.
- [Read, Extract, and Preflight PDF Files](/docs/pswriteoffice/pdf-read-preflight/) Guide
  
  Inspect PDF metadata, pages, text, images, fonts, forms, annotations, signatures, compliance, and rewrite readiness before changing a file.
- [Redact PDF Content](/docs/pdf/redaction/) Guide
  
  Find sensitive text with literal or regex searches, review the plan, remove the content and verify the redacted PDF with OfficeIMO.Pdf.

## Examples

### Preview sensitive identifiers.

```powershell
Get-OfficePdfRedactionPlan -LiteralPath './Report[1].pdf' -Pattern 'Account: \d+'
```

## Parameters

**-CaseSensitive SwitchParameter optionalsets: Text, Pattern, TextLiteralPath, PatternLiteralPath**

CaseSensitive setting.

**-IgnorePermissionRestrictions SwitchParameter optional**

IgnorePermissionRestrictions setting.

**-LoadOptions PdfLoadOptions optional**

Native parsing, authentication and resource policy.

**-Password SecureString optional**

Password setting.

**-Path String[] requiredposition: 0sets: Text, Pattern, Area, Rectangle**

Input PDF paths with wildcard expansion.

**-Text String[] requiredsets: Text, TextLiteralPath**

Text setting.

**-Pattern String[] requiredsets: Pattern, PatternLiteralPath**

Pattern setting.

**-Area PdfRedactionArea[] requiredsets: Area, AreaLiteralPath**

Area setting.

**-Height OfficeLength requiredsets: Rectangle, RectangleLiteralPath**

Height setting.

**-Label String optionalsets: Rectangle, RectangleLiteralPath**

Label setting.

**-Page Int32 requiredsets: Rectangle, RectangleLiteralPath**

Page setting.

**-Width OfficeLength requiredsets: Rectangle, RectangleLiteralPath**

Width setting.

**-X OfficeLength requiredsets: Rectangle, RectangleLiteralPath**

X setting.

**-Y OfficeLength requiredsets: Rectangle, RectangleLiteralPath**

Y setting.

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

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:4FDB5A606311A3073E9FE402243C299657CFB917A0A9D61EA723822F23CC5D01 -->
