AddRichMediaAnnotationFromFile

Annotations and hotspot links

Description

Adds a rich media annotation (video, sound, 3D, flash) loaded from a file

Syntax

Delphi

Function TPDFlib.AddRichMediaAnnotationFromFile(Left, Top, Width, Height: Double; Const FileName, AssetName, MIMEType, Title, Description: WideString; MediaType: TPDFlibRichMediaType; Activation: TPDFlibRichMediaActivation; Deactivation: TPDFlibRichMediaDeactivation; PosterImageID: Integer= 0): Integer;

Parameters

LeftThe X coordinate of the top-left corner of the annotation rectangle
TopThe Y coordinate of the top-left corner of the annotation rectangle
WidthThe width of the annotation rectangle
HeightThe height of the annotation rectangle
FileNameThe filesystem path of the rich media source file
AssetNameThe name to associate with the embedded rich media asset
MIMETypeThe MIME type of the rich media content
TitleThe title of the rich media presentation
DescriptionA description of the rich media content
MediaTypeThe rich media content type classification
ActivationThe automatic player activation trigger condition
DeactivationThe automatic player deactivation trigger condition
PosterImageIDThe optional image resource ID to display as a cover poster

Return values

The index of the newly created rich media annotation, or -1 on error