public class PdfScreenAnnotation extends PdfAnnotation
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 |
---|
PdfScreenAnnotation(PdfDictionary pdfObject)
Deprecated.
Use
PdfAnnotation.makeAnnotation(PdfObject) instead. Will be made protected in 7.1
|
PdfScreenAnnotation(Rectangle rect) |
Modifier and Type | Method and Description |
---|---|
PdfDictionary |
getAction()
An PdfAction to perform, such as launching an application, playing a sound, changing an annotation’s appearance state etc, when the annotation is activated.
|
PdfDictionary |
getAdditionalAction()
An additional actions dictionary that extends the set of events that can trigger the execution of an action.
|
PdfDictionary |
getAppearanceCharacteristics()
An appearance characteristics dictionary containing additional information for constructing the annotation’s appearance stream.
|
PdfName |
getSubtype()
Gets a PdfName which value is a subtype of this annotation.
|
PdfScreenAnnotation |
setAction(PdfAction action)
Sets a PdfAction to this annotation which will be performed when the annotation is activated.
|
PdfScreenAnnotation |
setAdditionalAction(PdfName key, PdfAction action)
Sets an additional PdfAction to this annotation which will be performed in response to the specific trigger event defined by key .
|
PdfScreenAnnotation |
setAppearanceCharacteristics(PdfDictionary characteristics)
Sets an appearance characteristics dictionary containing additional information for constructing the annotation’s appearance stream.
|
flush, getAppearanceDictionary, getAppearanceObject, getAppearanceState, getBorder, getBorderStyle, getColorObject, getContents, getDate, getDownAppearanceObject, getFlags, getName, getNormalAppearanceObject, getOpen, getPage, getPageObject, getQuadPoints, getRectangle, getRolloverAppearanceObject, getStructParentIndex, getTitle, hasFlag, isWrappedObjectMustBeIndirect, makeAnnotation, makeAnnotation, put, remove, resetFlag, setAppearance, setAppearance, 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
public PdfScreenAnnotation(Rectangle rect)
@Deprecated public PdfScreenAnnotation(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 PdfDictionary getAction()
PdfAction
to perform, such as launching an application, playing a sound, changing an annotation’s appearance state etc, when the annotation is activated.
getAction
in class PdfAnnotation
PdfDictionary
which defines the characteristics and behaviour of an action.
public PdfScreenAnnotation setAction(PdfAction action)
PdfAction
to this annotation which will be performed when the annotation is activated.
setAction
in class PdfAnnotation
action
- PdfAction
to set to this annotation.
PdfScreenAnnotation
instance.
public PdfDictionary getAdditionalAction()
getAdditionalAction
in class PdfAnnotation
PdfDictionary
.
getAction()
public PdfScreenAnnotation setAdditionalAction(PdfName key, PdfAction action)
PdfAction
to this annotation which will be performed in response to the specific trigger event defined by key
. See ISO-320001 12.6.3, "Trigger Events".
setAdditionalAction
in class PdfAnnotation
key
- a PdfName
that denotes a type of the additional action to set.
action
- PdfAction
to set as additional to this annotation.
PdfScreenAnnotation
instance.
public PdfDictionary getAppearanceCharacteristics()
getAppearanceCharacteristics
in class PdfAnnotation
public PdfScreenAnnotation setAppearanceCharacteristics(PdfDictionary characteristics)
setAppearanceCharacteristics
in class PdfAnnotation
characteristics
- the PdfDictionary
with additional information for appearance stream.
PdfScreenAnnotation
instance.
Copyright © 1998–2018 iText Group NV. All rights reserved.