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
Modifier | Constructor and Description |
---|---|
protected |
PdfRedactAnnotation(PdfDictionary pdfObject)
Instantiates a new PdfRedactAnnotation instance based on PdfDictionary instance, that represents existing annotation object in the document.
|
|
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) |
getCreationDate, getExternalData, getInReplyTo, getInReplyToObject, getIntent, getOpacity, getPopup, getPopupObject, getReplyType, getRichText, getSubject, getText, setCreationDate, setExternalData, setExternalData, setInReplyTo, setIntent, setOpacity, setPopup, setReplyType, setRichText, setSubject, setText
addAssociatedFile, flush, getAppearanceDictionary, getAppearanceObject, getAppearanceState, getAssociatedFiles, getBlendMode, getBorder, getColorObject, getContents, getDate, getDownAppearanceObject, getFlags, getLang, getName, getNonStrokingOpacity, getNormalAppearanceObject, getPage, getPageObject, getRectangle, getRolloverAppearanceObject, getStrokingOpacity, getStructParentIndex, getTitle, hasFlag, isWrappedObjectMustBeIndirect, makeAnnotation, put, remove, resetFlag, setAppearance, setAppearance, setAppearanceState, setBlendMode, setBorder, setBorder, setColor, setColor, setColor, setContents, setContents, setDate, setDownAppearance, setDownAppearance, setFlag, setFlags, setLang, setLayer, setName, setNonStrokingOpacity, setNormalAppearance, setNormalAppearance, setPage, setRectangle, setRolloverAppearance, setRolloverAppearance, setStrokingOpacity, setStructParentIndex, setTitle
ensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidRelease
public PdfRedactAnnotation(Rectangle rect)
protected PdfRedactAnnotation(PdfDictionary pdfObject)
PdfRedactAnnotation
instance based on PdfDictionary
instance, that represents existing annotation object in the document.
pdfObject
- the PdfDictionary
representing annotation object
PdfAnnotation.makeAnnotation(PdfObject)
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()
PdfString
that specifies the default appearance, or null if default appereance is not specified.
public PdfRedactAnnotation setDefaultAppearance(PdfString appearanceString)
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()
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.
quadPoints
- an PdfArray
of 8 × n numbers specifying the coordinates of n quadrilaterals.
PdfRedactAnnotation
instance.
public Color getInteriorColor()
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)
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)
interiorColor
- an array of floats in the range 0.0 to 1.0.
PdfRedactAnnotation
instance.
public int getJustification()
public PdfRedactAnnotation setJustification(int justification)
justification
- a code specifying the form of quadding (justification).
PdfRedactAnnotation
instance.
Copyright © 1998–2020 iText Group NV. All rights reserved.