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
| Left | The X coordinate of the top-left corner of the annotation rectangle |
|---|---|
| Top | The Y coordinate of the top-left corner of the annotation rectangle |
| Width | The width of the annotation rectangle |
| Height | The height of the annotation rectangle |
| FileName | The filesystem path of the rich media source file |
| AssetName | The name to associate with the embedded rich media asset |
| MIMEType | The MIME type of the rich media content |
| Title | The title of the rich media presentation |
| Description | A description of the rich media content |
| MediaType | The rich media content type classification |
| Activation | The automatic player activation trigger condition |
| Deactivation | The automatic player deactivation trigger condition |
| PosterImageID | The 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