public abstract class PdfMarkupAnnotation extends PdfAnnotation
Modifier and Type | Field and Description |
---|---|
protected PdfAnnotation |
inReplyTo |
protected PdfPopupAnnotation |
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 |
PdfMarkupAnnotation(PdfDictionary pdfObject) |
protected |
PdfMarkupAnnotation(Rectangle rect) |
Modifier and Type | Method and Description |
---|---|
PdfDictionary |
getBorderEffect()
Deprecated.
Supported only for:
PdfFreeTextAnnotation , PdfSquareAnnotation , PdfCircleAnnotation , PdfPolyGeomAnnotation will be removed in 7.1
|
PdfString |
getCreationDate()
The date and time when the annotation was created.
|
PdfString |
getDefaultAppearance()
Deprecated.
Supported only for:
PdfFreeTextAnnotation , PdfRedactAnnotation will be removed in 7.1 The default appearance string that shall be used in formatting the text. See ISO-32001 12.7.3.3, "Variable Text".
|
PdfDictionary |
getExternalData()
An external data dictionary specifying data that shall be associated with the annotation.
|
PdfName |
getIconName()
Deprecated.
Supported only for:
PdfTextAnnotation , PdfStampAnnotation , PdfFileAttachmentAnnotation , PdfSoundAnnotation , will be removed in 7.1
|
PdfAnnotation |
getInReplyTo()
An annotation that this annotation is "in reply to." Both annotations shall be on the same page of the document.
|
PdfDictionary |
getInReplyToObject()
An annotation object that this annotation is "in reply to." Both annotations shall be on the same page of the document.
|
PdfName |
getIntent()
A name describing the intent of the markup annotation.
|
Color |
getInteriorColor()
Deprecated.
Supported only for:
PdfLineAnnotation , PdfSquareAnnotation , PdfCircleAnnotation , PdfPolyGeomAnnotation , PdfRedactAnnotation will be removed in 7.1
|
int |
getJustification()
Deprecated.
Supported only for:
PdfFreeTextAnnotation , PdfRedactAnnotation will be removed in 7.1
|
PdfNumber |
getOpacity()
The constant opacity value that will be used in painting the annotation.
|
PdfPopupAnnotation |
getPopup()
An associated pop-up annotation for entering or editing the text associated with this annotation.
|
PdfDictionary |
getPopupObject()
An associated pop-up annotation object.
|
PdfArray |
getRectangleDifferences()
Deprecated.
Supported only for:
PdfFreeTextAnnotation , PdfSquareAnnotation , PdfCircleAnnotation , PdfCaretAnnotation will be removed in 7.1
|
PdfName |
getReplyType()
A name specifying the relationship (the "reply type") between this annotation and one specified by IRT entry (see getInReplyTo() ).
|
PdfObject |
getRichText()
A rich text string (see ISO-320001 12.7.3.4, "Rich Text Strings") that shall be displayed in the pop-up window when the annotation is opened.
|
PdfString |
getSubject()
Text representing a short description of the subject being addressed by the annotation.
|
PdfString |
getText()
The text label that will be displayed in the title bar of the annotation's pop-up window when open and active.
|
PdfMarkupAnnotation |
setBorderEffect(PdfDictionary borderEffect)
Deprecated.
Supported only for:
PdfFreeTextAnnotation , PdfSquareAnnotation , PdfCircleAnnotation , PdfPolyGeomAnnotation will be removed in 7.1
|
PdfMarkupAnnotation |
setCreationDate(PdfString creationDate)
Sets the date and time when the annotation was created.
|
PdfMarkupAnnotation |
setDefaultAppearance(PdfString appearanceString)
Deprecated.
Supported only for:
PdfFreeTextAnnotation , PdfRedactAnnotation will be removed in 7.1 The default appearance string that shall be used in formatting the text. See ISO-32001 12.7.3.3, "Variable Text".
|
PdfMarkupAnnotation |
setExternalData(PdfName exData)
Sets an external data dictionary specifying data that shall be associated with the annotation.
|
PdfMarkupAnnotation |
setIconName(PdfName name)
Deprecated.
Supported only for:
PdfTextAnnotation , PdfStampAnnotation , PdfFileAttachmentAnnotation , PdfSoundAnnotation , will be removed in 7.1
|
PdfMarkupAnnotation |
setInReplyTo(PdfAnnotation inReplyTo)
Sets an annotation that this annotation is "in reply to." Both annotations shall be on the same page of the document.
|
PdfMarkupAnnotation |
setIntent(PdfName intent)
Sets a name describing the intent of the markup annotation.
|
PdfMarkupAnnotation |
setInteriorColor(float[] interiorColor)
Deprecated.
Supported only for:
PdfLineAnnotation , PdfSquareAnnotation , PdfCircleAnnotation , PdfPolyGeomAnnotation , PdfRedactAnnotation will be removed in 7.1
|
PdfMarkupAnnotation |
setInteriorColor(PdfArray interiorColor)
Deprecated.
Supported only for:
PdfLineAnnotation , PdfSquareAnnotation , PdfCircleAnnotation , PdfPolyGeomAnnotation , PdfRedactAnnotation will be removed in 7.1
|
PdfMarkupAnnotation |
setJustification(int justification)
Deprecated.
Supported only for:
PdfFreeTextAnnotation , PdfRedactAnnotation will be removed in 7.1
|
PdfMarkupAnnotation |
setOpacity(PdfNumber ca)
Sets the constant opacity value that will be used in painting the annotation.
|
PdfMarkupAnnotation |
setPopup(PdfPopupAnnotation popup)
Sets a pop-up annotation for entering or editing the text associated with this annotation.
|
PdfMarkupAnnotation |
setRectangleDifferences(PdfArray rect)
Deprecated.
Supported only for:
PdfFreeTextAnnotation , PdfSquareAnnotation , PdfCircleAnnotation , PdfCaretAnnotation will be removed in 7.1
|
PdfMarkupAnnotation |
setReplyType(PdfName replyType)
Sets the relationship (the "reply type") between this annotation and one specified by IRT entry (see setInReplyTo(PdfAnnotation) ).
|
PdfMarkupAnnotation |
setRichText(PdfObject richText)
Sets a rich text string (see ISO-320001 12.7.3.4, "Rich Text Strings") that shall be displayed in the pop-up window when the annotation is opened.
|
PdfMarkupAnnotation |
setSubject(PdfString subject)
Sets the text representing a short description of the subject being addressed by the annotation.
|
PdfMarkupAnnotation |
setText(PdfString text)
Sets the text label that will be displayed in the title bar of the annotation's pop-up window when open and active.
|
flush, getAction, getAdditionalAction, getAppearanceCharacteristics, getAppearanceDictionary, getAppearanceObject, getAppearanceState, getBorder, getBorderStyle, getColorObject, getContents, getDate, getDownAppearanceObject, getFlags, getName, getNormalAppearanceObject, getOpen, getPage, getPageObject, getQuadPoints, getRectangle, getRolloverAppearanceObject, getStructParentIndex, getSubtype, 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, setQuadPoints, setRectangle, setRolloverAppearance, setRolloverAppearance, setStructParentIndex, setTitle
ensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidRelease
protected PdfAnnotation inReplyTo
protected PdfPopupAnnotation popup
protected PdfMarkupAnnotation(Rectangle rect)
protected PdfMarkupAnnotation(PdfDictionary pdfObject)
public PdfString getText()
PdfString
which value is an annotation text label content or null if text is not specified.
public PdfMarkupAnnotation setText(PdfString text)
text
- PdfString
which value is an annotation text label content.
PdfMarkupAnnotation
instance.
public PdfNumber getOpacity()
PdfNumber
which value is in range between 0 and 1, which specifies the level of opacity. This method returns null if opacity is not specified; in this case default value is used, which is 1.
public PdfMarkupAnnotation setOpacity(PdfNumber ca)
ca
- a PdfNumber
which value is in range between 0 and 1, which specifies the level of opacity.
PdfMarkupAnnotation
instance.
getOpacity()
public PdfObject getRichText()
public PdfMarkupAnnotation setRichText(PdfObject richText)
richText
- text string or text stream that specifies rich text.
PdfMarkupAnnotation
instance.
public PdfString getCreationDate()
PdfString
which value should be in the date format specified in (ISO-320001 7.9.4, "Dates").
public PdfMarkupAnnotation setCreationDate(PdfString creationDate)
creationDate
- PdfString
which value should be in the date format specified in (ISO-320001 7.9.4, "Dates").
PdfMarkupAnnotation
instance.
public PdfDictionary getInReplyToObject()
getReplyType()
).
PdfDictionary
that represents an annotation that this annotation is "in reply to."
public PdfAnnotation getInReplyTo()
getReplyType()
).
PdfAnnotation
that this annotation is "in reply to."
public PdfMarkupAnnotation setInReplyTo(PdfAnnotation inReplyTo)
getReplyType()
).
inReplyTo
- a PdfAnnotation
that this annotation is "in reply to."
PdfMarkupAnnotation
instance.
public PdfMarkupAnnotation setPopup(PdfPopupAnnotation popup)
PdfAnnotation.setContents(PdfString)
) entry of the annotation that has an associated popup specifies the text that shall be displayed when the pop-up window is opened.
popup
- an PdfPopupAnnotation
that will be associated with this annotation.
PdfMarkupAnnotation
instance.
public PdfDictionary getPopupObject()
getPopup()
for more info.
PdfDictionary
that represents an associated pop-up annotation, or null if popup annotation is not specified.
public PdfPopupAnnotation getPopup()
PdfAnnotation.getContents()
) entry of the annotation that has an associated popup specifies the text that shall be displayed when the pop-up window is opened.
PdfPopupAnnotation
that is associated with this annotation, or null if there is none.
public PdfString getSubject()
PdfString
which value is a annotation subject.
public PdfMarkupAnnotation setSubject(PdfString subject)
subject
- a PdfString
which value is a annotation subject.
PdfMarkupAnnotation
instance.
public PdfName getReplyType()
getInReplyTo()
). Valid values are:
PdfName.R
- The annotation shall be considered a reply to the annotation specified by IRT. Conforming readers shall not display replies to an annotation individually but together in the form of threaded comments.PdfName.Group
- The annotation shall be grouped with the annotation specified by IRT.public PdfMarkupAnnotation setReplyType(PdfName replyType)
setInReplyTo(PdfAnnotation)
). For valid values see getInReplyTo()
.
replyType
- a PdfName
specifying relationship with the specified by the IRT entry.
PdfMarkupAnnotation
instance.
public PdfName getIntent()
setIntent(PdfName)
for more info.
PdfName
describing the intent of the markup annotation, or null if not specified.
public PdfMarkupAnnotation setIntent(PdfName intent)
See ISO-320001, free text annotations (Table 174), line annotations (Table 175), polygon annotations (Table 178), and polyline annotations (Table 178) for the specific intent values for those types.
intent
- a PdfName
describing the intent of the markup annotation.
PdfMarkupAnnotation
instance.
public PdfDictionary getExternalData()
PdfName.Type
- (optional) If present, shall be PdfName.ExData
.PdfName.Subtype
- (required) a name specifying the type of data that the markup annotation shall be associated with. The only defined value is PdfName.Markup3D
. Table 298 (ISO-320001) lists the values that correspond to a subtype of Markup3D (See also Pdf3DAnnotation
).PdfDictionary
, or null if not specified.
public PdfMarkupAnnotation setExternalData(PdfName exData)
PdfName.Type
- (optional) If present, shall be PdfName.ExData
.PdfName.Subtype
- (required) a name specifying the type of data that the markup annotation shall be associated with. The only defined value is PdfName.Markup3D
. Table 298 (ISO-320001) lists the values that correspond to a subtype of Markup3D (See also Pdf3DAnnotation
).PdfMarkupAnnotation
instance.
@Deprecated public PdfMarkupAnnotation setRectangleDifferences(PdfArray rect)
PdfFreeTextAnnotation
, PdfSquareAnnotation
, PdfCircleAnnotation
, PdfCaretAnnotation
will be removed in 7.1
@Deprecated public PdfArray getRectangleDifferences()
PdfFreeTextAnnotation
, PdfSquareAnnotation
, PdfCircleAnnotation
, PdfCaretAnnotation
will be removed in 7.1
@Deprecated public PdfMarkupAnnotation setBorderEffect(PdfDictionary borderEffect)
PdfFreeTextAnnotation
, PdfSquareAnnotation
, PdfCircleAnnotation
, PdfPolyGeomAnnotation
will be removed in 7.1
@Deprecated public PdfDictionary getBorderEffect()
PdfFreeTextAnnotation
, PdfSquareAnnotation
, PdfCircleAnnotation
, PdfPolyGeomAnnotation
will be removed in 7.1
@Deprecated public Color getInteriorColor()
PdfLineAnnotation
, PdfSquareAnnotation
, PdfCircleAnnotation
, PdfPolyGeomAnnotation
, PdfRedactAnnotation
will be removed in 7.1
@Deprecated public PdfMarkupAnnotation setInteriorColor(PdfArray interiorColor)
PdfLineAnnotation
, PdfSquareAnnotation
, PdfCircleAnnotation
, PdfPolyGeomAnnotation
, PdfRedactAnnotation
will be removed in 7.1
@Deprecated public PdfMarkupAnnotation setInteriorColor(float[] interiorColor)
PdfLineAnnotation
, PdfSquareAnnotation
, PdfCircleAnnotation
, PdfPolyGeomAnnotation
, PdfRedactAnnotation
will be removed in 7.1
@Deprecated public PdfName getIconName()
PdfTextAnnotation
, PdfStampAnnotation
, PdfFileAttachmentAnnotation
, PdfSoundAnnotation
, will be removed in 7.1
@Deprecated public PdfMarkupAnnotation setIconName(PdfName name)
PdfTextAnnotation
, PdfStampAnnotation
, PdfFileAttachmentAnnotation
, PdfSoundAnnotation
, will be removed in 7.1
@Deprecated public PdfMarkupAnnotation setDefaultAppearance(PdfString appearanceString)
PdfFreeTextAnnotation
, PdfRedactAnnotation
will be removed in 7.1 The default appearance string that shall be used in formatting the text. See ISO-32001 12.7.3.3, "Variable Text".
appearanceString
- a PdfString
that specifies the default appearance.
PdfMarkupAnnotation
instance.
@Deprecated public PdfString getDefaultAppearance()
PdfFreeTextAnnotation
, PdfRedactAnnotation
will be removed in 7.1 The default appearance string that shall be used in formatting the text. See ISO-32001 12.7.3.3, "Variable Text".
PdfString
that specifies the default appearance, or null if default appereance is not specified.
@Deprecated public int getJustification()
PdfFreeTextAnnotation
, PdfRedactAnnotation
will be removed in 7.1
@Deprecated public PdfMarkupAnnotation setJustification(int justification)
PdfFreeTextAnnotation
, PdfRedactAnnotation
will be removed in 7.1
Copyright © 1998–2018 iText Group NV. All rights reserved.