public final class RedactionAnnotation extends Annotation
Represents Redact annotation.
_disableUpdateAppearance
Constructor and Description |
---|
RedactionAnnotation(IDocument document)
Constructor for RedactionAnnotation.
|
RedactionAnnotation(Page page,
Rectangle rect)
Constructor for RedactAnnotation.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(AnnotationSelector visitor)
Accepts visitor object to process the annotation.
|
void |
flatten()
Flattens annotation i.e. removes annotation and adds its content
|
int |
getAnnotationType()
Gets type of annotation.
|
Color |
getBorderColor()
Gets color of border which is drawn when redaction is not active.
|
Color |
getFillColor()
Gets color to fill annotation.
|
String |
getOverlayText()
Text to print on redact annotation.
|
Point[] |
getQuadPoint()
An array of 8xN numbers specifying the coordinates of content region that is intended to be
removed.
|
int |
getTextAlignment()
Gets alignment of Overlay Text.
|
boolean |
isRepeat()
If true overlay text will be repated on the annotation.
|
void |
redact()
Flattens annotation and redacts page contents (i.e. removes text and image content under redacted
annotation)
|
void |
redactExact()
Flattens annotation and redacts page contents (i.e. removes text and image content exactly under redacted
annotation)
|
void |
setBorderColor(Color value)
Sets color of border which is drawn when redaction is not active.
|
void |
setFillColor(Color value)
Sets color to fill annotation.
|
void |
setFontSize(int fontSize)
Font size of text to print on redact annotation.
|
void |
setOverlayText(String value)
Text to print on redact annotation.
|
void |
setQuadPoint(Point[] value)
An array of 8xN numbers specifying the coordinates of content region that is intended to be
removed.
|
void |
setRepeat(boolean value)
If true overlay text will be repated on the annotation.
|
void |
setTextAlignment(int value)
Sets alignment of Overlay Text.
|
createAnnotation, getActiveState, getAlignment, getAppearance, getBorder, getCharacteristics, getColor, getContents, getEngineDict, getEngineObj, getFlags, getFullName, getHeight, getHorizontalAlignment_Annotation_New, getModified, getModifiedInternal, getName, getNormalAppearance, getPage, getPageIndex, getPageIndex, getPdfActions, getRect, getRectangle, getStates, getTextHorizontalAlignment, getWidth, initialize, isUpdateAppearanceOnConvert, isUseFontSubset, setActiveState, setAlignment, setBorder, setColor, setContents, setFlags, setHeight, setHorizontalAlignment_Annotation_New, setModified, setModifiedInternal, setName, setRect, setStructParent, setTextHorizontalAlignment, setUpdateAppearanceOnConvert, setUseFontSubset, setWidth
deepClone, getHorizontalAlignment, getHyperlink, getMargin, getVerticalAlignment, getZIndex, isFirstParagraphInColumn, isInLineParagraph, isInNewPage, isKeptWithNext, setFirstParagraphInColumn, setHorizontalAlignment, setHyperlink, setInLineParagraph, setInNewPage, setKeptWithNext, setMargin, setVerticalAlignment, setZIndex
public RedactionAnnotation(IDocument document)
Constructor for RedactionAnnotation. For using in Generator.
document
- Document where new annotation will be created.public void accept(AnnotationSelector visitor)
Accepts visitor object to process the annotation.
accept
in class Annotation
visitor
- Visitor object.public Point[] getQuadPoint()
An array of 8xN numbers specifying the coordinates of content region that is intended to be removed.
public void setQuadPoint(Point[] value)
An array of 8xN numbers specifying the coordinates of content region that is intended to be removed.
value
- array of pointpublic Color getFillColor()
Gets color to fill annotation.
public void setFillColor(Color value)
Sets color to fill annotation.
value
- color valuepublic Color getBorderColor()
Gets color of border which is drawn when redaction is not active.
public void setBorderColor(Color value)
Sets color of border which is drawn when redaction is not active.
value
- Color valuepublic String getOverlayText()
Text to print on redact annotation.
public void setOverlayText(String value)
Text to print on redact annotation.
value
- string objectpublic boolean isRepeat()
If true overlay text will be repated on the annotation.
public void setRepeat(boolean value)
If true overlay text will be repated on the annotation.
value
- boolean valuepublic int getTextAlignment()
Gets alignment of Overlay Text.
HorizontalAlignment
public void setTextAlignment(int value)
Sets alignment of Overlay Text.
value
- HorizontalAlignment valueHorizontalAlignment
public void flatten()
Flattens annotation i.e. removes annotation and adds its content
flatten
in class Annotation
public void redact()
Flattens annotation and redacts page contents (i.e. removes text and image content under redacted annotation)
public void redactExact()
Flattens annotation and redacts page contents (i.e. removes text and image content exactly under redacted annotation)
public int getAnnotationType()
Gets type of annotation.
getAnnotationType
in class Annotation
AnnotationType
public void setFontSize(int fontSize)
Font size of text to print on redact annotation.
Default value is 10.fontSize
- int value