public class PdfRedactAnnotation extends PdfMarkupAnnotation
inReplyTo, popup
Accepted, Canceled, Completed, HIDDEN, HIGHLIGHT_INVERT, HIGHLIGHT_NONE, HIGHLIGHT_OUTLINE, HIGHLIGHT_PUSH, HIGHLIGHT_TOGGLE, INVISIBLE, LOCKED, LOCKED_CONTENTS, Marked, MarkedModel, NO_ROTATE, NO_VIEW, NO_ZOOM, None, page, PRINT, READ_ONLY, Rejected, ReviewModel, STYLE_BEVELED, STYLE_DASHED, STYLE_INSET, STYLE_SOLID, STYLE_UNDERLINE, TOGGLE_NO_VIEW, Unmarked
Constructor and Description |
---|
PdfRedactAnnotation(PdfDictionary pdfObject)
Deprecated.
Use
PdfAnnotation.makeAnnotation(PdfObject) instead. Will be made protected in 7.1
|
PdfRedactAnnotation(Rectangle rect) |
Modifier and Type | Method and Description |
---|---|
PdfString |
getDefaultAppearance()
The default appearance string that shall be used in formatting the text.
|
Color |
getInteriorColor()
The interior color which is used to fill the redacted region after the affected content has been removed.
|
int |
getJustification()
A code specifying the form of quadding (justification) that is used in displaying the annotation's text: 0 - Left-justified, 1 - Centered, 2 - Right-justified.
|
PdfString |
getOverlayText() |
PdfArray |
getQuadPoints()
An array of 8 × n numbers specifying the coordinates of n quadrilaterals in default user space.
|
PdfStream |
getRedactRolloverAppearance() |
PdfBoolean |
getRepeat() |
PdfName |
getSubtype()
Gets a PdfName which value is a subtype of this annotation.
|
PdfRedactAnnotation |
setDefaultAppearance(AnnotationDefaultAppearance da) |
PdfRedactAnnotation |
setDefaultAppearance(PdfString appearanceString)
The default appearance string that shall be used in formatting the text.
|
PdfRedactAnnotation |
setInteriorColor(float[] interiorColor)
An array of numbers in the range 0.0 to 1.0 specifying the interior color which is used to fill the redacted region after the affected content has been removed.
|
PdfRedactAnnotation |
setInteriorColor(PdfArray interiorColor)
An array of numbers in the range 0.0 to 1.0 specifying the interior color which is used to fill the redacted region after the affected content has been removed.
|
PdfRedactAnnotation |
setJustification(int justification)
A code specifying the form of quadding (justification) that is used in displaying the annotation's text: 0 - Left-justified, 1 - Centered, 2 - Right-justified.
|
PdfRedactAnnotation |
setOverlayText(PdfString text) |
PdfRedactAnnotation |
setQuadPoints(PdfArray quadPoints)
Sets n quadrilaterals in default user space by passing an PdfArray of 8 × n numbers.
|
PdfRedactAnnotation |
setRedactRolloverAppearance(PdfStream stream) |
PdfRedactAnnotation |
setRepeat(PdfBoolean repeat) |
getBorderEffect, getCreationDate, getExternalData, getIconName, getInReplyTo, getInReplyToObject, getIntent, getOpacity, getPopup, getPopupObject, getRectangleDifferences, getReplyType, getRichText, getSubject, getText, setBorderEffect, setCreationDate, setExternalData, setIconName, setInReplyTo, setIntent, setOpacity, setPopup, setRectangleDifferences, setReplyType, setRichText, setSubject, setText
flush, getAction, getAdditionalAction, getAppearanceCharacteristics, getAppearanceDictionary, getAppearanceObject, getAppearanceState, getBorder, getBorderStyle, getColorObject, getContents, getDate, getDownAppearanceObject, getFlags, getName, getNormalAppearanceObject, getOpen, getPage, getPageObject, getRectangle, getRolloverAppearanceObject, getStructParentIndex, getTitle, hasFlag, isWrappedObjectMustBeIndirect, makeAnnotation, makeAnnotation, put, remove, resetFlag, setAction, setAdditionalAction, setAppearance, setAppearance, setAppearanceCharacteristics, setAppearanceState, setBorder, setBorderStyle, setBorderStyle, setColor, setColor, setColor, setContents, setContents, setDashPattern, setDate, setDownAppearance, setDownAppearance, setFlag, setFlags, setLayer, setName, setNormalAppearance, setNormalAppearance, setOpen, setPage, setRectangle, setRolloverAppearance, setRolloverAppearance, setStructParentIndex, setTitle
ensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidRelease
public PdfRedactAnnotation(Rectangle rect)
@Deprecated public PdfRedactAnnotation(PdfDictionary pdfObject)
PdfAnnotation.makeAnnotation(PdfObject)
instead. Will be made protected in 7.1
pdfObject
- object representing this annotation
public PdfName getSubtype()
PdfAnnotation
PdfName
which value is a subtype of this annotation. See ISO-320001 12.5.6, "Annotation Types" for the reference to the possible types.
getSubtype
in class PdfAnnotation
public PdfString getDefaultAppearance()
getDefaultAppearance
in class PdfMarkupAnnotation
PdfString
that specifies the default appearance, or null if default appereance is not specified.
public PdfRedactAnnotation setDefaultAppearance(PdfString appearanceString)
setDefaultAppearance
in class PdfMarkupAnnotation
appearanceString
- a PdfString
that specifies the default appearance.
PdfMarkupAnnotation
instance.+
public PdfRedactAnnotation setDefaultAppearance(AnnotationDefaultAppearance da)
public PdfRedactAnnotation setOverlayText(PdfString text)
public PdfString getOverlayText()
public PdfRedactAnnotation setRedactRolloverAppearance(PdfStream stream)
public PdfStream getRedactRolloverAppearance()
public PdfRedactAnnotation setRepeat(PdfBoolean repeat)
public PdfBoolean getRepeat()
public PdfArray getQuadPoints()
getQuadPoints
in class PdfAnnotation
PdfArray
of 8 × n numbers specifying the coordinates of n quadrilaterals.
public PdfRedactAnnotation setQuadPoints(PdfArray quadPoints)
PdfArray
of 8 × n numbers. Quadrilaterals are used to define the content region that is intended to be removed for a redaction annotation.
setQuadPoints
in class PdfAnnotation
quadPoints
- an PdfArray
of 8 × n numbers specifying the coordinates of n quadrilaterals.
PdfRedactAnnotation
instance.
public Color getInteriorColor()
getInteriorColor
in class PdfMarkupAnnotation
Color
of either DeviceGray
, DeviceRgb
or DeviceCmyk
type which defines interior color of the annotation, or null if interior color is not specified.
public PdfRedactAnnotation setInteriorColor(PdfArray interiorColor)
setInteriorColor
in class PdfMarkupAnnotation
interiorColor
- a PdfArray
of numbers in the range 0.0 to 1.0. The number of array elements determines the colour space in which the colour is defined: 0 - No colour, transparent; 1 - DeviceGray, 3 - DeviceRGB, 4 - DeviceCMYK. For the PdfRedactAnnotation
number of elements shall be equal to 3 (which defines DeviceRGB colour space).
PdfRedactAnnotation
instance.
public PdfRedactAnnotation setInteriorColor(float[] interiorColor)
setInteriorColor
in class PdfMarkupAnnotation
interiorColor
- an array of floats in the range 0.0 to 1.0.
PdfRedactAnnotation
instance.
public int getJustification()
getJustification
in class PdfMarkupAnnotation
public PdfRedactAnnotation setJustification(int justification)
setJustification
in class PdfMarkupAnnotation
justification
- a code specifying the form of quadding (justification).
PdfRedactAnnotation
instance.
Copyright © 1998–2018 iText Group NV. All rights reserved.