com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class 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.

    • Constructor Detail

      • RichMediaAnnotation

        public RichMediaAnnotation(Page page,
                                   Rectangle rect)
    • Method Detail

      • getAnnotationType

        public int getAnnotationType()

        Gets type of annotation.

        Specified by:
        getAnnotationType in class Annotation
        Returns:
        AnnotationType element
        See Also:
        AnnotationType
      • accept

        public void accept(AnnotationSelector visitor)

        Accepts visitor for this annotation.

        Specified by:
        accept in class Annotation
        Parameters:
        visitor - Visitor instance.
      • getCustomPlayer

        public InputStream getCustomPlayer()

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

        Returns:
        InputStream object
      • setCustomPlayer

        public void setCustomPlayer(InputStream value)

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

        Parameters:
        value - InputStream object
      • getCustomFlashVariables

        public String getCustomFlashVariables()

        Sets or gets flash variables which passed to player.

        Returns:
        String object
      • setCustomFlashVariables

        public void setCustomFlashVariables(String value)

        Sets or gets flash variables which passed to player.

        Parameters:
        value - String object
      • addCustomData

        public void addCustomData(String name,
                                  InputStream data)

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

        Parameters:
        name - Name of the data.
        data - Data.
      • setContent

        public void setContent(String fileName,
                               InputStream audio)

        Set content stream.

        Parameters:
        fileName - Name of the stream.
        audio - Data stream.
      • getContent_Rename_Namesake

        public InputStream getContent_Rename_Namesake()

        Data of the Rich Media content.

        Returns:
        InputStream object
      • getType

        public int getType()

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

        Returns:
        ContentType value
        See Also:
        RichMediaAnnotation.ContentType
      • setType

        public void setType(int value)

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

        Parameters:
        value - ContentType element
      • getActivateOn

        public int getActivateOn()

        Event which activates application.

        Returns:
        ActivationEvent element
      • setActivateOn

        public void setActivateOn(int value)

        Event which activates application.

        Parameters:
        value - ActivationEvent element
      • setPoster

        public void setPoster(InputStream imageStream)

        Set poster of the annotation.

        Parameters:
        imageStream - Stream containing poster image.
      • update

        public void update()

        Updates data with specified parameters.