SoundAnnotation

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

All Implemented Interfaces: com.aspose.ms.System.ICloneable, com.aspose.pdf.engine.ITitledAnnotation

public final class SoundAnnotation extends MarkupAnnotation

Represents a sound annotation that contains sound recorded from the computer’s microphone or imported from a file.

Constructors

ConstructorDescription
SoundAnnotationCreates new Sound annotation on the specified page.
SoundAnnotationCreates new Sound annotation on the specified page.

Methods

MethodDescription
acceptAccepts visitor object to process the annotation.
getAnnotationTypeGets type of annotation.
getIconGets an icon to be used in displaying the annotation.
getSoundDataGets a sound object defining the sound to be played when the annotation is activated.
setIconSets an icon to be used in displaying the annotation.

SoundAnnotation

Creates new Sound annotation on the specified page.

SoundAnnotation

Creates new Sound annotation on the specified page.

accept

Accepts visitor object to process the annotation.

getAnnotationType

public AnnotationType getAnnotationType()

Gets type of annotation.

Returns: AnnotationType value @see AnnotationType

getIcon

public int getIcon()

Gets an icon to be used in displaying the annotation.

Returns: SoundIcon value @see SoundIcon

getSoundData

public SoundData getSoundData()

Gets a sound object defining the sound to be played when the annotation is activated.

Returns: SoundData value

setIcon

public void setIcon(int value)

Sets an icon to be used in displaying the annotation.

Parameters:

ParameterTypeDescription
valueSoundIcon value @see SoundIcon