Redaction

Inheritance: java.lang.Object

public class Redaction

For internal usage only

Constructors

Constructor Description
Redaction()

Methods

Method Description
redactText(Page page, Rectangle rect) Removes text which is in requried rectangle
redactText(XForm form, Rectangle rect) Removes text which is in requried rectangle
_RedactText(Page page, Rectangle rect)
redactImages(Page page, Rectangle rect, Color color) Removes images (or redacts contents of the image is image is partially covered by rectangle)
redactAnnotations(Page page, Rectangle rect) Removes Annotation which is in required rectangle
getRedactionAppearance(Rectangle rect, Color color) get Redaction Appearance
getRedactionAppearanceInternal(Rectangle rect, System.Drawing.Color color) For Internal Usage only get Redaction Appearance
getredactArea(Page page, Rectangle rect, Color color) get redact Area
redactArea(Page page, Rectangle rect, Color color) For Internal Usage only get redact Area
redactAreaInternal(Page page, Rectangle rect, System.Drawing.Color color, boolean exactArea)

Redaction()

public Redaction()

redactText(Page page, Rectangle rect)

public static void redactText(Page page, Rectangle rect)

Removes text which is in requried rectangle

Parameters:

Parameter Type Description
page Page Page object
rect Rectangle Rectangle object

redactText(XForm form, Rectangle rect)

public static void redactText(XForm form, Rectangle rect)

Removes text which is in requried rectangle

Parameters:

Parameter Type Description
form XForm XForm object
rect Rectangle Rectangle object

_RedactText(Page page, Rectangle rect)

public static void _RedactText(Page page, Rectangle rect)

Parameters:

Parameter Type Description
page Page
rect Rectangle

redactImages(Page page, Rectangle rect, Color color)

public static void redactImages(Page page, Rectangle rect, Color color)

Removes images (or redacts contents of the image is image is partially covered by rectangle)

Parameters:

Parameter Type Description
page Page Page object
rect Rectangle Rectangle object
color java.awt.Color Color object

redactAnnotations(Page page, Rectangle rect)

public static void redactAnnotations(Page page, Rectangle rect)

Removes Annotation which is in required rectangle

Parameters:

Parameter Type Description
page Page Page object
rect Rectangle Rectangle object

getRedactionAppearance(Rectangle rect, Color color)

public static List<Operator> getRedactionAppearance(Rectangle rect, Color color)

get Redaction Appearance

Parameters:

Parameter Type Description
rect Rectangle Rectangle object
color java.awt.Color Color object

Returns: java.util.List<com.aspose.pdf.Operator> - List object

getRedactionAppearanceInternal(Rectangle rect, System.Drawing.Color color)

public static System.Collections.Generic.List<Operator> getRedactionAppearanceInternal(Rectangle rect, System.Drawing.Color color)

For Internal Usage only get Redaction Appearance

Parameters:

Parameter Type Description
rect Rectangle Rectangle object
color com.aspose.ms.System.Drawing.Color Color object

Returns: com.aspose.ms.System.Collections.Generic.List<com.aspose.pdf.Operator> - List object

getredactArea(Page page, Rectangle rect, Color color)

public static void getredactArea(Page page, Rectangle rect, Color color)

get redact Area

Parameters:

Parameter Type Description
page Page Page object
rect Rectangle Rectangle object
color java.awt.Color Color object

redactArea(Page page, Rectangle rect, Color color)

public static void redactArea(Page page, Rectangle rect, Color color)

For Internal Usage only get redact Area

Parameters:

Parameter Type Description
page Page Page object
rect Rectangle Rectangle object
color java.awt.Color Color object

redactAreaInternal(Page page, Rectangle rect, System.Drawing.Color color, boolean exactArea)

public static void redactAreaInternal(Page page, Rectangle rect, System.Drawing.Color color, boolean exactArea)

Parameters:

Parameter Type Description
page Page
rect Rectangle
color com.aspose.ms.System.Drawing.Color
exactArea boolean