Method RedactArea

Namespace
SoftZenPdf.Redact
Assembly
SoftZenPdf.Redact.dll

RedactArea(int, double, double, double, double)

Marks an area for redaction: everything drawn inside it is removed.

public void RedactArea(int pageIndex, double x1, double y1, double x2, double y2)

Parameters

pageIndex int

Zero-based page index.

x1 double

One corner's x, in points.

y1 double

One corner's y.

x2 double

The opposite corner's x.

y2 double

The opposite corner's y.

RedactArea(RedactionArea)

Marks an area for redaction: everything drawn inside it is removed.

public void RedactArea(RedactionArea area)

Parameters

area RedactionArea

The area.

Exceptions

ArgumentOutOfRangeException

The page index is outside the document, or the area is empty.