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 |
---|---|
PdfString |
getCreationDate()
The date and time when the annotation was created.
|
PdfDictionary |
getExternalData()
An external data dictionary specifying data that shall be associated with the annotation.
|
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.
|
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.
|
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 |
setCreationDate(PdfString creationDate)
Sets the date and time when the annotation was created.
|
PdfMarkupAnnotation |
setExternalData(PdfName exData)
Sets an external data dictionary specifying data that shall be associated with the annotation.
|
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 |
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 |
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.
|
addAssociatedFile, flush, getAppearanceDictionary, getAppearanceObject, getAppearanceState, getAssociatedFiles, getBlendMode, getBorder, getColorObject, getContents, getDate, getDownAppearanceObject, getFlags, getLang, getName, getNonStrokingOpacity, getNormalAppearanceObject, getPage, getPageObject, getRectangle, getRolloverAppearanceObject, getStrokingOpacity, getStructParentIndex, getSubtype, 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
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.
Copyright © 1998–2020 iText Group NV. All rights reserved.