Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Get-OfficePdfRedactionPlan

Module
PSWriteOffice
Inputs
System.String[]
Outputs
OfficeIMO.Pdf.PdfRedactionPlan

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>]
#
Parameter set: Text
Get-OfficePdfRedactionPlan
[-CaseSensitive]
[-IgnorePermissionRestrictions]
[-LoadOptions <PdfLoadOptions>]
[-Password <SecureString>]
[-Path] <String[]>
-Pattern <String[]>
[<CommonParameters>]
#
Parameter set: Pattern
Get-OfficePdfRedactionPlan
-Area <PdfRedactionArea[]>
[-IgnorePermissionRestrictions]
[-LoadOptions <PdfLoadOptions>]
[-Password <SecureString>]
[-Path] <String[]>
[<CommonParameters>]
#
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>]
#
Parameter set: Rectangle
Get-OfficePdfRedactionPlan
[-CaseSensitive]
[-IgnorePermissionRestrictions]
-LiteralPath <String[]>
[-LoadOptions <PdfLoadOptions>]
[-Password <SecureString>]
-Text <String[]>
[<CommonParameters>]
#
Parameter set: TextLiteralPath
Get-OfficePdfRedactionPlan
[-CaseSensitive]
[-IgnorePermissionRestrictions]
-LiteralPath <String[]>
[-LoadOptions <PdfLoadOptions>]
[-Password <SecureString>]
-Pattern <String[]>
[<CommonParameters>]
#
Parameter set: PatternLiteralPath
Get-OfficePdfRedactionPlan
-Area <PdfRedactionArea[]>
[-IgnorePermissionRestrictions]
-LiteralPath <String[]>
[-LoadOptions <PdfLoadOptions>]
[-Password <SecureString>]
[<CommonParameters>]
#
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>]
#
Parameter set: RectangleLiteralPath

Examples

Preview sensitive identifiers.

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.