RichMediaAnnotation

Inheritance: java.lang.Object, com.aspose.pdf.BaseParagraph com.aspose.pdf.Annotation com.aspose.pdf.RichMediaAnnotation, com.aspose.pdf.BaseParagraph, com.aspose.pdf.Annotation com.aspose.pdf.RichMediaAnnotation, com.aspose.pdf.Annotation, com.aspose.pdf.RichMediaAnnotation

All Implemented Interfaces: com.aspose.ms.System.ICloneable

public class RichMediaAnnotation extends Annotation

Class describes RichMediaAnnotation which allows embed video/audio data into PDF document.

Constructors

ConstructorDescription
RichMediaAnnotationInitializes RichMediaAnnotation.

Methods

MethodDescription
acceptAccepts visitor for this annotation.
addCustomDataAdd custom named data (for example required for flash script).
getActivateOnEvent which activates application.
getAnnotationTypeGets type of annotation.
getContentData of the Rich Media content.
getCustomFlashVariablesSets or gets flash variables which passed to player.
getCustomPlayerSets or gets custom flash player to play video/audio data.
getTypeGets or sets type of content. Possible values: Audio, Video.
setActivateOnEvent which activates application.
setContentSet content stream.
setCustomFlashVariablesSets or gets flash variables which passed to player.
setCustomPlayerSets or gets custom flash player to play video/audio data.
setPosterSet poster of the annotation.
setTypeGets or sets type of content. Possible values: Audio, Video.
updateUpdates data with specified parameters.

RichMediaAnnotation

Initializes RichMediaAnnotation.

accept

Accepts visitor for this annotation.

addCustomData

Add custom named data (for example required for flash script).

getActivateOn

public int getActivateOn()

Event which activates application.

Returns: ActivationEvent element

getAnnotationType

public AnnotationType getAnnotationType()

Gets type of annotation.

Returns: AnnotationType element @see AnnotationType

getContent

public InputStream getContent()

Data of the Rich Media content.

Returns: InputStream object

getCustomFlashVariables

public String getCustomFlashVariables()

Sets or gets flash variables which passed to player.

Returns: String object

getCustomPlayer

public InputStream getCustomPlayer()

Sets or gets custom flash player to play video/audio data.

Returns: InputStream object

getType

public int getType()

Gets or sets type of content. Possible values: Audio, Video.

Returns: ContentType value @see ContentType

setActivateOn

public void setActivateOn(int value)

Event which activates application.

Parameters:

ParameterTypeDescription
valueActivationEvent element

setContent

Set content stream.

setCustomFlashVariables

Sets or gets flash variables which passed to player.

setCustomPlayer

Sets or gets custom flash player to play video/audio data.

setPoster

Set poster of the annotation.

setType

public void setType(int value)

Gets or sets type of content. Possible values: Audio, Video.

Parameters:

ParameterTypeDescription
valueContentType element

update

public void update()

Updates data with specified parameters.