public static class

Redactor.Redaction

extends Object
implements AutoCloseable
java.lang.Object
   ↳ com.pdftron.pdf.Redactor.Redaction

Summary

Public Constructors
Redaction(int page_num, Rect bbox, boolean negative, String text)
Public Methods
void close()
Frees the native memory of the object.
void destroy()
Frees the native memory of the object.
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.lang.AutoCloseable

Public Constructors

public Redaction (int page_num, Rect bbox, boolean negative, String text)

Parameters
page_num - a page number on which to perform the redaction.
bbox - the bounding box for the redaction in PDF page coordinate system.
negative - if true, remove the content outside of the redaction area, otherwise remove the content inside the redaction area.
text - optional anchor text to be placed in the redaction region.

Public Methods

public void close ()

Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.

public void destroy ()

Frees the native memory of the object. This can be explicitly called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.