API Reference
Cmdlet
Get-OfficePdfRedactionPlan
Previews text and annotations intersecting rectangle-based redaction areas.
Remarks
This command reports redaction impact only. It does not remove or rewrite PDF content.
Examples
Preview a redaction rectangle.
PS>
Get-OfficePdfRedactionPlan -Path .\Report.pdf -PageNumber 1 -X 72 -Y 650 -Width 240 -Height 32
Returns line-level text blocks and annotations that intersect the rectangle.
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.
Syntax
Get-OfficePdfRedactionPlan -Height <Double> [-Label <String>] -PageNumber <Int32> [-Password <String>] -Path <String> -Width <Double> -X <Double> -Y <Double> [<CommonParameters>]#Parameter set:
RectangleParameters
- Height Double
- Rectangle height in PDF points.
- Label String
- Optional redaction area label.
- PageNumber Int32
- One-based page number for the redaction rectangle.
- Password String
- Password used to read a Standard password-encrypted PDF.
- Path String
- PDF file path.
- Width Double
- Rectangle width in PDF points.
- X Double
- Left coordinate in PDF points.
- Y Double
- Bottom coordinate in PDF points.
Outputs
OfficeIMO.Pdf.PdfRedactionPlan
Get-OfficePdfRedactionPlan -Area <PdfRedactionArea[]> [-Password <String>] -Path <String> [<CommonParameters>]#Parameter set:
AreaParameters
- Area PdfRedactionArea[]
- One or more pre-created OfficeIMO.Pdf redaction areas.
- Password String
- Password used to read a Standard password-encrypted PDF.
- Path String
- PDF file path.
Outputs
OfficeIMO.Pdf.PdfRedactionPlan