Summary: Ctors | Methods | Inherited Methods | [Expand All]
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
boolean | equals(Object arg0)
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()
From interface java.lang.AutoCloseable
abstract void | close()

## 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.

##### Throws

PDFNetException |

## 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.

##### Throws

PDFNetException |

#### 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.