AddSWFAnnotationFromFile

Vector graphics, Image handling, Annotations and hotspot links, Page layout

Description

Adds a Flash SWF file as an annotation to the current page.

Syntax

Delphi

function TPDFlib.AddSWFAnnotationFromFile(Left, Top, Width, Height: Double; Const FileName, Title: WideString; Options: Integer): Integer;

ActiveX

Function PDFlib::AddSWFAnnotationFromFile(Left As Double, Top As Double, Width As Double, Height As Double, FileName As String, Title As String, Options As Long) As Long

DLL

int DLAddSWFAnnotationFromFile(int InstanceID, double Left, double Top, double Width, double Height, wchar_t * FileName, wchar_t * Title, int Options);

Parameters

LeftThe horizontal co-ordinate of the left edge of the annotation rectangle
TopThe vertical co-ordinate of the top edge of the annotation rectangle
WidthThe width of the annotation rectangle
HeightThe height of the annotation rectangle The path and name of the SWF file
FileName
TitleThe annotation title
OptionsAnnotation event to activate SWF: 0 = Page visible 1 = Mouse enter 2 = Mouse button click

Return values

0The specified file could not be found
1The SWF was successfully added as an annotation