addRedact

public final PdfRedactAnnotation addRedact(float x, float y, float width, float height)

Adds a redaction annotation to this page. The annotation marks content for redaction but does not apply the redaction until is called. The annotation is created with default black fill color. Use the returned annotation's properties to customize the fill color and other options. Call to permanently remove the content under all redaction annotations.

Return

The newly created .

Parameters

x

The x coordinate of the redaction area in points.

y

The y coordinate of the redaction area in points.

width

The width of the redaction area in points.

height

The height of the redaction area in points.

Throws

Thrown when no page is loaded.

Thrown when the operation fails.