PdfRedactionRegion
OfficeIMO.Pdf
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.
Returned or exposed by 7
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
- points System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfRedactionPoint>
- strokeWidth double
- label string? = null
Returns
PdfRedactionRegionpublic 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
Returns
PdfRedactionRegionpublic 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
- areas System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfRedactionArea>
- label string? = null
Returns
PdfRedactionRegionpublic static PdfRedactionRegion Polygon(int pageNumber, IEnumerable<PdfRedactionPoint> points, string? label = null) #Creates an exact polygon.
Parameters
- pageNumber int
- points System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfRedactionPoint>
- label string? = null
Returns
PdfRedactionRegionpublic static PdfRedactionRegion Quadrilateral(int pageNumber, IEnumerable<PdfRedactionPoint> points, string? label = null) #Creates an exact quadrilateral.
Parameters
- pageNumber int
- points System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfRedactionPoint>
- label string? = null
Returns
PdfRedactionRegionpublic static PdfRedactionRegion Rectangle(int pageNumber, double x, double y, double width, double height, string? label = null) #Creates one rectangle region.
Parameters
- pageNumber int
- x double
- y double
- width double
- height double
- label string? = null
Returns
PdfRedactionRegionInherited Methods
Properties
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 double StrokeWidth { get; } #Freehand stroke width in page user-space units, or zero for other kinds.