Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfRedactionRegion

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
be6c300e4ab1 with working tree changes
Modifiers
sealed

Review geometry normalized into bounded areas that retain exact polygon or freehand geometry through planning, destructive application, verification, and evidence.

Inheritance

  • object
  • PdfRedactionRegion

Remarks

Native page coordinates use default user-space units: one unit is /UserUnit physical points (1/72 inch each), defaulting to 1. Local text/font and matrix values retain their native coordinate spaces. Explicit visual projections use their documented coordinates.

Usage

Explore 9 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 2

Methods

public static PdfRedactionRegion Freehand(int pageNumber, IEnumerable<PdfRedactionPoint> points, double strokeWidth, string? label = null) #

Creates an exact round-capped freehand region split into bounded path segments.

Parameters

pageNumber int required
points System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfRedactionPoint> required
strokeWidth double required
label string? = null optional
public static PdfRedactionRegion FromRedactAnnotation(PdfAnnotation annotation) #

Creates one atomic review region from a standard PDF /Redact annotation, honoring every valid /QuadPoints quadrilateral before falling back to /Rect.

Parameters

annotation OfficeIMO.Pdf.PdfAnnotation required
public static PdfRedactionRegion Group(int pageNumber, IEnumerable<PdfRedactionArea> areas, string? label = null) #

Groups pre-normalized rectangles from one page into one review decision.

Parameters

pageNumber int required
areas System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfRedactionArea> required
label string? = null optional
public static PdfRedactionRegion Polygon(int pageNumber, IEnumerable<PdfRedactionPoint> points, string? label = null) #

Creates an exact polygon.

Parameters

pageNumber int required
points System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfRedactionPoint> required
label string? = null optional
public static PdfRedactionRegion Quadrilateral(int pageNumber, IEnumerable<PdfRedactionPoint> points, string? label = null) #

Creates an exact quadrilateral.

Parameters

pageNumber int required
points System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfRedactionPoint> required
label string? = null optional
public static PdfRedactionRegion Rectangle(int pageNumber, double x, double y, double width, double height, string? label = null) #

Creates one rectangle region.

Parameters

pageNumber int required
x double required
y double required
width double required
height double required
label string? = null optional

Properties

public PdfRedactionRegionKind Kind { get; } #

Original review geometry kind.

public int PageNumber { get; } #

One-based page number.

public IReadOnlyList<PdfRedactionPoint> Points { get; } #

Original points, when the region is path based.

public IReadOnlyList<PdfRedactionArea> Areas { get; } #

Canonical bounded destructive areas. Non-rectangular areas retain exact internal geometry.

public string? Label { get; } #

Optional caller label.

public double StrokeWidth { get; } #

Freehand stroke width in page user-space units, or zero for other kinds.