public class RichMediaAnnotation extends Annotation
Class describes RichMediaAnnotation which allows embed video/audio data into PDF document.
Modifier and Type | Class and Description |
---|---|
static class |
RichMediaAnnotation.ActivationEvent
Event which activates annotation.
|
static class |
RichMediaAnnotation.ContentType
Type of the multimedia.
|
_disableUpdateAppearance
Constructor and Description |
---|
RichMediaAnnotation(Page page,
Rectangle rect) |
Modifier and Type | Method and Description |
---|---|
void |
accept(AnnotationSelector visitor)
Accepts visitor for this annotation.
|
void |
addCustomData(String name,
InputStream data)
Add custom named data (for example required for flash script).
|
int |
getActivateOn()
Event which activates application.
|
int |
getAnnotationType()
Gets type of annotation.
|
InputStream |
getContent()
Data of the Rich Media content.
|
String |
getCustomFlashVariables()
Sets or gets flash variables which passed to player.
|
InputStream |
getCustomPlayer()
Sets or gets custom flash player to play video/audio data.
|
int |
getType()
Gets or sets type of content.
|
void |
setActivateOn(int value)
Event which activates application.
|
void |
setContent(String fileName,
InputStream audio)
Set content stream.
|
void |
setCustomFlashVariables(String value)
Sets or gets flash variables which passed to player.
|
void |
setCustomPlayer(InputStream value)
Sets or gets custom flash player to play video/audio data.
|
void |
setPoster(InputStream imageStream)
Set poster of the annotation.
|
void |
setType(int value)
Gets or sets type of content.
|
void |
update()
Updates data with specified parameters.
|
createAnnotation, flatten, getActiveState, getAlignment, getAppearance, getBorder, getCharacteristics, getColor, getContents, getEngineDict, getEngineObj, getFlags, getFullName, getHeight, getHorizontalAlignment_Annotation_New, getModified, getModifiedInternal, getName, getNormalAppearance, getPage, getPageIndex, getPageIndex, getPdfActions, getRect, getRectangle, getStates, getTextHorizontalAlignment, getWidth, initialize, isUpdateAppearanceOnConvert, isUseFontSubset, setActiveState, setAlignment, setBorder, setColor, setContents, setFlags, setHeight, setHorizontalAlignment_Annotation_New, setModified, setModifiedInternal, setName, setRect, setStructParent, setTextHorizontalAlignment, setUpdateAppearanceOnConvert, setUseFontSubset, setWidth
deepClone, getHorizontalAlignment, getHyperlink, getMargin, getVerticalAlignment, getZIndex, isFirstParagraphInColumn, isInLineParagraph, isInNewPage, isKeptWithNext, setFirstParagraphInColumn, setHorizontalAlignment, setHyperlink, setInLineParagraph, setInNewPage, setKeptWithNext, setMargin, setVerticalAlignment, setZIndex
public int getAnnotationType()
Gets type of annotation.
getAnnotationType
in class Annotation
AnnotationType
public void accept(AnnotationSelector visitor)
Accepts visitor for this annotation.
accept
in class Annotation
visitor
- Visitor instance.public InputStream getCustomPlayer()
Sets or gets custom flash player to play video/audio data.
public void setCustomPlayer(InputStream value)
Sets or gets custom flash player to play video/audio data.
value
- InputStream objectpublic String getCustomFlashVariables()
Sets or gets flash variables which passed to player.
public void setCustomFlashVariables(String value)
Sets or gets flash variables which passed to player.
value
- String objectpublic void addCustomData(String name, InputStream data)
Add custom named data (for example required for flash script).
name
- Name of the data.data
- Data.public void setContent(String fileName, InputStream audio)
Set content stream.
fileName
- Name of the stream.audio
- Data stream.public InputStream getContent()
Data of the Rich Media content.
public int getType()
Gets or sets type of content. Possible values: Audio, Video.
RichMediaAnnotation.ContentType
public void setType(int value)
Gets or sets type of content. Possible values: Audio, Video.
value
- ContentType elementpublic int getActivateOn()
Event which activates application.
public void setActivateOn(int value)
Event which activates application.
value
- ActivationEvent elementpublic void setPoster(InputStream imageStream)
Set poster of the annotation.
imageStream
- Stream containing poster image.public void update()
Updates data with specified parameters.