[]
Represents a rich media annotation. Rich media annotations provide a common framework for video, audio, animations and other multimedia presentations.
public class RichMediaAnnotation : AnnotationBase, IOwnedObject, IContentItem, IPdfDict
Initializes a new instance of the RichMediaAnnotation class.
public RichMediaAnnotation()
Gets or sets the IPdfName object specifying the circumstances under which the annotation shall be activated. The RichMediaAnnotationActivation static class defines the valid values.
public IPdfName ActivationCondition { get; set; }
Gets or sets the IPdfName object specifying the circumstances under which the annotation shall be deactivated. The RichMediaAnnotationDeactivation static class defines the valid values.
public IPdfName DeactivationCondition { get; set; }
Gets or sets the IPdfName object specifying the style of presentation of the rich media (embedded or windowed). The RichMediaAnnotationPresentationStyle static class defines the valid values.
public IPdfName PresentationStyle { get; set; }
Gets or sets a value indicating the default behavior of a navigation pane user interface element. If true, the navigation pane should be visible when the content is initially activated. If false, the navigation pane should not be displayed. The default is false.
public bool ShowNavigationPane { get; set; }
Gets or sets the value indicating the default behavior of an interactive toolbar associated with this annotation. If true, the toolbar should be displayed when the annotation is activated and given focus. If false, the toolbar should not be displayed.
public bool ShowToolbar { get; set; }
Gets the FileSpecification object representing the content associated with this RichMediaAnnotation.
public FileSpecification GetContent(out RichMediaAnnotationContentType? contentType)
contentType
RichMediaAnnotationContentType?OUT: The content type.
The file specification representing the content, or null if the content cannot be extracted.
Sets the content of this RichMediaAnnotation to the audio represented by a FileSpecification object.
public void SetAudio(FileSpecification content)
content
FileSpecificationThe FileSpecification object representing the audio content.
Sets the content of this RichMediaAnnotation.
public void SetContent(FileSpecification content, RichMediaAnnotationContentType contentType)
content
FileSpecificationThe FileSpecification object representing the content.
contentType
RichMediaAnnotationContentTypeThe content type.
Sets the content of this RichMediaAnnotation to the video represented by a FileSpecification object.
public void SetVideo(FileSpecification content)
content
FileSpecificationThe FileSpecification object representing the video content.